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

AWS Config Configuration Recorder / Delivery Channel Names Cannot be Modified #1244

Closed
Zordrak opened this issue Jul 26, 2017 · 1 comment · Fixed by #1247
Closed

AWS Config Configuration Recorder / Delivery Channel Names Cannot be Modified #1244

Zordrak opened this issue Jul 26, 2017 · 1 comment · Fixed by #1247
Labels
bug Addresses a defect in current functionality.

Comments

@Zordrak
Copy link

Zordrak commented Jul 26, 2017

AWS Config Configuration Recorder and Delivery Channel resources have immutable name parameters. Terraform is under the false impression it can change these parameters without recreating the resources. When doing so the following type of error is encountered:

13:09:22 Error applying plan:
13:09:22 
13:09:22 2 error(s) occurred:
13:09:22 
13:09:22 * module.awsconfig.aws_config_configuration_recorder.main: 1 error(s) occurred:
13:09:22 
13:09:22 * aws_config_configuration_recorder.main: Creating Configuration Recorder failed: MaxNumberOfConfigurationRecordersExceededException: Failed to put configuration recorder 'default' because the maximum number of configuration recorders: 1 is reached.
13:09:22 	status code: 400, request id: a2655ec3-7203-11e7-9eb7-ddff1ad76391
13:09:22 * module.awsconfig.aws_config_delivery_channel.main: 1 error(s) occurred:
13:09:22 
13:09:22 * aws_config_delivery_channel.main: Creating Delivery Channel failed: MaxNumberOfDeliveryChannelsExceededException: Failed to put delivery channel 'default' because the maximum number of delivery channels: 1 is reached.
13:09:22 	status code: 400, request id: a26510af-7203-11e7-8366-b33d35215df6

Terraform should instead attempt to re-create these resources when the name parameter changes, and should wait for the old resource to be destroyed (eventual consistency) before creating new resources.

Terraform Version

0.9.11

Affected Resource(s)

aws_config_configuration_recorder
aws_config_delivery_channel

Expected Behavior

Plan sets "(forces new resource)" when name parameter changes

Actual Behavior

Plan expect to modify resource name base on changed name parameter

@Ninir Ninir added the bug Addresses a defect in current functionality. label Jul 26, 2017
@ghost
Copy link

ghost commented Apr 11, 2020

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!

@ghost ghost locked and limited conversation to collaborators Apr 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality.
Projects
None yet
2 participants