-
Notifications
You must be signed in to change notification settings - Fork 121
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
awscc_ssm_document
always attemts to replace the document on update
#1426
Comments
I noticed that
This obviously conflicting with what @sh-dan found from CloudFormation doc |
relates to #1149 |
as demonstrated when you try to inspect the resource using CCAPI, the attribute
|
I forgot to mention and address the other part of this issue, a.k.a where you trying to update the
as such, its not clear yet why updating the |
Community Note
Terraform CLI and Terraform AWS Cloud Control Provider Version
Terraform v1.7.3
on darwin_arm64
Affected Resource(s)
Terraform Configuration Files
And minimal Schema app_config_schema:
Expected Behavior
When
update_method = NewVersion
a new version of the SSM document should be created
Actual Behavior
Provider attempts to replace the SSM document instead of creating a new version.
StatusMessage: Create-Only │ Property cannot be updated.. ErrorCode: NotUpdatable
ErrorSteps to Reproduce
terraform apply
terraform apply
Important Factoids
Comparing Cloud Control API Patch requests from TF DEBUG logs for different
update_method
types,NewVersion
only sends onereplace
operation for/Content
and does not include anUpdateMethod
:While
Replace
sends anUpdateMethod
op as well.NewVersion
should be settingUpdateMethod
toNewVersion
As that's the other allowed value andReplace
Is the default according to the docsDebug Output
Debug update logs with
update_method = NewVersion
andupdate_method = Replace
:https://gist.github.com/sh-dan/355795f9d270b46793ea398f4e0c63b7
Including
Replace
as I'm not certain that settingUpdateMethod
is sufficient sinceReplace
doesn't seem to work correctly either and getting a different error:api error ValidationException: [REPLACE Operation] noSuchPath in source, path provided : //UpdateMethod"
The text was updated successfully, but these errors were encountered: