-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
r/aws_elastic_beanstalk_application: Add appversion_lifecycle #1907
r/aws_elastic_beanstalk_application: Add appversion_lifecycle #1907
Conversation
7b21f23
to
18b34de
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @mfenniak 👋 Very sorry for the delayed review of this PR 😅 after rebasing and randomizing the test resource naming (we run our acceptance testing concurrently), this LGTM.
make testacc TEST=./aws TESTARGS='-run=TestAccAWSBeanstalkApp'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -run=TestAccAWSBeanstalkApp -timeout 120m
=== RUN TestAccAWSBeanstalkApp_basic
--- PASS: TestAccAWSBeanstalkApp_basic (15.12s)
=== RUN TestAccAWSBeanstalkApp_appversionlifecycle
--- PASS: TestAccAWSBeanstalkApp_appversionlifecycle (36.71s)
=== RUN TestAccAWSBeanstalkAppVersion_basic
--- PASS: TestAccAWSBeanstalkAppVersion_basic (32.75s)
=== RUN TestAccAWSBeanstalkAppVersion_duplicateLabels
--- PASS: TestAccAWSBeanstalkAppVersion_duplicateLabels (32.79s)
PASS
ok github.com/terraform-providers/terraform-provider-aws/aws 117.403s
This has been released in version 1.16.0 of the AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. |
Thanks for the review, merge, and quick release bflad! Appreciate it. |
I recently applied the change with But I found there are still more than 100 versions, I wait for one week, total versions doesn't reduce to 50 automatically. Could you please confirm if this feature really works or not?
terraform version is 0.11.7 Can you confirm what policies I should assign to iam role |
@ozbillwang Hi Bill; I can confirm that this capability actually works on AWS. If it is appearing in the application's "Settings" page on the AWS Console, it is likely a problem with your IAM role. Other than this, if it appears in the AWS Console, but it doesn't work, it's not a problem with the terraform side of this equation, and I'd suggest you reach out to AWS support for further help. :-) Here's a working IAM role policy that my application uses:
|
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Adds
appversion_lifecycle
configuration underaws_elastic_beanstalk_application
resource to configure automatic cleanup of application versions.Addresses issue #537.