Open sergio1986bcn opened 3 weeks ago
Voting for Prioritization
Volunteering to Work on This Issue
Hey @sergio1986bcn 👋 Thank you for taking the time to raise this! I took a look at the resource schema, and it appears the resource is returning exactly what the API returns.
I noticed that you're using the -raw
flag for terraform output
. Is it possible that what you're seeing is a #
being printed due to there not being a newline at the end of the returned string? For example, with the following configuration:
resource "random_pet" "test" {}
output "test" {
value = random_pet.test.id
}
I have the following results:
$ terraform output
test = "upward-flounder"
$ terraform output -raw test
upward-flounder%
$ terraform output test
"upward-flounder"
$ terraform output -json test | jq -r '.'
upward-flounder
Terraform Core Version
1.9.5
AWS Provider Version
5.63.1,5.62.0
Affected Resource(s)
aws_iam_service_specific_credential
Expected Behavior
The password generated by the aws_iam_service_specific_credential resource should be valid and not contain unexpected special characters, such as the # character
The password should be directly usable for authentication to AWS CodeCommit, without the need to remove additional characters or make modifications.
Actual Behavior
Instead of generating a password that can be used directly without modification, the aws_iam_service_specific_credential resource is generating a password that includes a trailing # character and affects authentication to AWS CodeCommit.
Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
Steps to Reproduce
terraform init terraform apply terraform output -raw test
Debug Output
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
None