Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[New]: aws_imagebuilder_lifecycle_policy #34874

Closed
lvthillo opened this issue Dec 12, 2023 · 3 comments
Closed

[New]: aws_imagebuilder_lifecycle_policy #34874

lvthillo opened this issue Dec 12, 2023 · 3 comments
Labels
service/imagebuilder Issues and PRs that pertain to the imagebuilder service.

Comments

@lvthillo
Copy link
Contributor

Description

AWS released the possibility to add lifecycle policies to manage AMIs/Container images created by AWS Image Builder.

It's also released in CloudFormation and the Go SDK

Requested Resource(s) and/or Data Source(s)

  • aws_imagebuilder_lifecycle_policy (both resource and data source)

Potential Terraform Configuration

resource "aws_imagebuilder_lifecycle_policy" "example" {
  description    = "Your lifecycle policy description"
  execution_role = "arn:aws:iam::account-id:role/execution-role"
  name           = "YourLifecyclePolicyName"
  policy_details = [
    {
      "action"     = "action-name",
      "parameters" = {
        "param-key" = "param-value",
      },
    },
  ]
  resource_selection {
    include_expression {
      filters = {
        filter-name = "filter-value",
      }
    }
    tag_filter {
      key    = "tag-key"
      values = ["tag-value"]
    }
    variable_tags {
      key    = "variable-tag-key"
      values = ["variable-tag-value"]
    }
  }
  resource_type = "<AMI_IMAGE | CONTAINER_IMAGE>"
  status        = "ENABLED"
  tags          = {
    key = "value"
  }
}

References

No response

Would you like to implement a fix?

None

Copy link

Community Note

Voting for Prioritization

  • Please vote on this issue by adding a 👍 reaction to the original post to help the community and maintainers prioritize this request.
  • Please see our prioritization guide for information on how we prioritize.
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.

Volunteering to Work on This Issue

  • If you are interested in working on this issue, please leave a comment.
  • If this would be your first contribution, please review the contribution guide.

@github-actions github-actions bot added the service/imagebuilder Issues and PRs that pertain to the imagebuilder service. label Dec 12, 2023
@terraform-aws-provider terraform-aws-provider bot added the needs-triage Waiting for first response or review from a maintainer. label Dec 12, 2023
@justinretzolk
Copy link
Member

Duplicate of #34854

@justinretzolk justinretzolk marked this as a duplicate of #34854 Dec 12, 2023
@terraform-aws-provider terraform-aws-provider bot removed the needs-triage Waiting for first response or review from a maintainer. label Dec 12, 2023
Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
service/imagebuilder Issues and PRs that pertain to the imagebuilder service.
Projects
None yet
Development

No branches or pull requests

2 participants