-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
resource/aws_ssm_parameter added data_type as option for possible validation #13326
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @jayolmos 👋 Thank you for contributing this! I found some issues while running the other existing resource tests. Can you please see the below feedback and let us know if you have any questions?
Hello @bflad sorry for the late response. I added all your suggestions to the code and it passed the tests. Thanks for the comments, I was having doubts when started the code specially with the paramInput part, not it's very clear how to proceed. Thanks a lot!
|
@jayolmos thank you for those updates and no worries! Do you mind quickly double checking all the resource tests? You can use |
Indeed they were failing, I think because the default was missing. I don't know if the SDK should provide this default but I added it to the code and now all tests are OK. Reference from SDK: Tests results: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @jayolmos 🚀 Please note I updated the test to verify the aws:ec2:image
data type, which required a valid AMI ID (e.g. an Amazon Linux AMI ID).
Output from acceptance testing:
--- PASS: TestAccAWSSSMParameter_disappears (8.61s)
--- PASS: TestAccAWSSSMParameter_basic (12.28s)
--- PASS: TestAccAWSSSMParameter_fullPath (13.42s)
--- PASS: TestAccAWSSSMParameter_secure (16.02s)
--- PASS: TestAccAWSSSMParameter_DataType_AwsEc2Image (18.95s)
--- PASS: TestAccAWSSSMParameter_changeNameForcesNew (21.68s)
--- PASS: TestAccAWSSSMParameter_secure_with_key (23.16s)
--- PASS: TestAccAWSSSMParameter_updateDescription (24.50s)
--- PASS: TestAccAWSSSMParameter_updateType (26.40s)
--- PASS: TestAccAWSSSMParameter_Tier (28.93s)
--- PASS: TestAccAWSSSMParameter_tags (29.42s)
--- PASS: TestAccAWSSSMParameter_secure_keyUpdate (31.56s)
--- PASS: TestAccAWSSSMParameter_overwrite (32.82s)
…c2:image error handling during read, and acceptance test aws:ec2:image data_type Reference: #13326 Output from acceptance testing: ``` --- PASS: TestAccAWSSSMParameter_disappears (8.61s) --- PASS: TestAccAWSSSMParameter_basic (12.28s) --- PASS: TestAccAWSSSMParameter_fullPath (13.42s) --- PASS: TestAccAWSSSMParameter_secure (16.02s) --- PASS: TestAccAWSSSMParameter_DataType_AwsEc2Image (18.95s) --- PASS: TestAccAWSSSMParameter_changeNameForcesNew (21.68s) --- PASS: TestAccAWSSSMParameter_secure_with_key (23.16s) --- PASS: TestAccAWSSSMParameter_updateDescription (24.50s) --- PASS: TestAccAWSSSMParameter_updateType (26.40s) --- PASS: TestAccAWSSSMParameter_Tier (28.93s) --- PASS: TestAccAWSSSMParameter_tags (29.42s) --- PASS: TestAccAWSSSMParameter_secure_keyUpdate (31.56s) --- PASS: TestAccAWSSSMParameter_overwrite (32.82s) ```
This has been released in version 3.1.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! |
Community Note
Relates OR Closes #13172
Release note for CHANGELOG:
Output from acceptance testing: