provider/aws: colon character rejected when used with tags
#11480
Labels
bug
Addresses a defect in current functionality.
service/ec2
Issues and PRs that pertain to the ec2 service.
stale
Old or inactive issues managed by automation, if no further action taken these will get closed.
This has apparently been a long term issues, and I believe it was closed last time because a reproducible example was not provided. This is my attempt to meet that requirement. Some of the data is obviously obfuscated.
These are the tags I would like to add, my example is only for the first tag
"aws:cloudformation:logical-id"
"aws:cloudformation:stack-id"
"aws:cloudformation:stack-name"
Terraform Version
Terraform v0.12.18
provider.aws v2.43.0
Affected Resource(s)
Terraform Configuration Files
Debug Output
For security reasons, I am not comfortable posting the ~4600 lines of DEBUG output to a public Gist. I have saved it and would be willing to work with a developer directly if it's absolutely necessary to address this issue.
Expected Behavior
Expected behavior is to add/update the VPC tags
Actual Behavior
$ terraform apply --target=aws_vpc.Workspaces-VPC2
aws_vpc.Workspaces-VPC2: Refreshing state... [id=vpc-xxxxxxxxxxxxxxxxx]
An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
~ update in-place
Terraform will perform the following actions:
aws_vpc.Workspaces-VPC2 will be updated in-place
Plan: 0 to add, 1 to change, 0 to destroy.
Warning: Resource targeting is in effect
You are creating a plan with the -target option, which means that the result
of this plan may not represent all of the changes requested by the current
configuration.
The -target option is not for routine use, and is provided only for
exceptional situations such as recovering from errors or mistakes, or when
Terraform specifically suggests to use it as part of an error message.
Do you want to perform these actions?
Terraform will perform the actions described above.
Only 'yes' will be accepted to approve.
Enter a value: yes
aws_vpc.Workspaces-VPC2: Modifying... [id=vpc-xxxxxxxxxxxxxxx]
Warning: Applied changes may be incomplete
The plan was created with the -target option in effect, so some changes
requested in the configuration may have been ignored and the output values may
not be fully updated. Run the following command to verify that no other
changes are pending:
terraform plan
Note that the -target option is not suitable for routine use, and is provided
only for exceptional situations such as recovering from errors or mistakes, or
when Terraform specifically suggests to use it as part of an error message.
Error: error updating tags: error tagging resource (vpc-xxxxxxxxxxxxxxxx): InvalidParameterValue: Value ( '' ) for parameter Tag key is invalid. Tag key cannot be null or empty.
status code: 400, request id: xxxx111x-1111-4a73-b576-7d4a578d6ddb
on vpc.tf line 51, in resource "aws_vpc" "Workspaces-VPC2":
51: resource "aws_vpc" "Workspaces-VPC2" {
Steps to Reproduce
terraform apply
Important Factoids
In this particular situation, I have already imported the VPC and the terraform state file has been updated and I am limiting the apply to a specific target
Community Note
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
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
If you are interested in working on this issue or have submitted a pull request, please leave a comment
#0000
The text was updated successfully, but these errors were encountered: