-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
name prefix request to aws_batch_compute_environment #3207
Comments
Here is a "fix" I have been using to simulate the name_prefix functionality. You can use the random resource to create stateful randomness. When you want to create a new compute environment you can just fiddle the random_string length which will cleanly create the new resources then delete the old resource.
|
Going to try and make a pull request to add a |
Not specific to the terraform provider but have you tried https://gitter.im/hashicorp-terraform/Lobby ? |
Adding a But when you use Terraform in CI/CD pipeline, it becomes increasingly difficult to maintain this. Hence, looking forward for |
Add
This is not ideal since it forces a recreate when you |
Support for a new |
This has been released in version 2.44.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks! |
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! |
Terraform Version
Terraform v0.11.2
Affected Resource(s)
Terraform Configuration Files
Debug Output
Expected Behavior
I'm using ECS-optimized AMI provided by Amazon, which is sometimes updated.
Then I defined
data.aws_ami.ecs_optmized
for track the AMI update automatically.I expect terraform to create new compute environment with the new AMI with new environment name, and then delete the existing compute environment with the old AMI.
Actual Behavior
Terraform fails to create new compute environment with the following error, because it tries to create a new environment with the same name.
I expect HCL can define compute environments' prefix, like
name_prefix
inaws_launch_configuration
.With such feature we can switch to a new compute environment by automating create (new environment), update (job queue), and delete (old environment) to update AMI.
Steps to Reproduce
terraform apply
The text was updated successfully, but these errors were encountered: