-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
r/aws_acmpca_certificate_authority: Add key_storage_security_standard
argument
#31280
r/aws_acmpca_certificate_authority: Add key_storage_security_standard
argument
#31280
Conversation
…ment Signed-off-by: M S Vishwanath Bhat <msvbhat@gmail.com>
Community NoteVoting for Prioritization
For Submitters
|
Thank you for your contribution! 🚀 Please note that the Remove any changes to the |
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.
Welcome @msvbhat 👋
It looks like this is your first Pull Request submission to the Terraform AWS Provider! If you haven’t already done so please make sure you have checked out our CONTRIBUTOR guide and FAQ to make sure your contribution is adhering to best practice and has all the necessary elements in place for a successful approval.
Also take a look at our FAQ which details how we prioritize Pull Requests for inclusion.
Thanks again, and welcome to the community! 😃
56ffebe
to
32eb791
Compare
…rtain Regions support 'FIPS_140_2_LEVEL_2_OR_HIGHER'.
32eb791
to
0d6c36b
Compare
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.
LGTM 🚀.
% AWS_DEFAULT_REGION=eu-central-2 make testacc TESTARGS='-run=TestAccACMPCACertificateAuthority_keyStorageSecurityStandard' PKG=acmpca ACCTEST_PARALLELISM=2
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/acmpca/... -v -count 1 -parallel 2 -run=TestAccACMPCACertificateAuthority_keyStorageSecurityStandard -timeout 180m
=== RUN TestAccACMPCACertificateAuthority_keyStorageSecurityStandard
=== PAUSE TestAccACMPCACertificateAuthority_keyStorageSecurityStandard
=== CONT TestAccACMPCACertificateAuthority_keyStorageSecurityStandard
--- PASS: TestAccACMPCACertificateAuthority_keyStorageSecurityStandard (21.53s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/acmpca 26.624s
% make testacc TESTARGS='-run=TestAccACMPCACertificateAuthority_' PKG=acmpca ACCTEST_PARALLELISM=2
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/acmpca/... -v -count 1 -parallel 2 -run=TestAccACMPCACertificateAuthority_ -timeout 180m
=== RUN TestAccACMPCACertificateAuthority_basic
=== PAUSE TestAccACMPCACertificateAuthority_basic
=== RUN TestAccACMPCACertificateAuthority_disappears
=== PAUSE TestAccACMPCACertificateAuthority_disappears
=== RUN TestAccACMPCACertificateAuthority_enabledDeprecated
=== PAUSE TestAccACMPCACertificateAuthority_enabledDeprecated
=== RUN TestAccACMPCACertificateAuthority_usageMode
=== PAUSE TestAccACMPCACertificateAuthority_usageMode
=== RUN TestAccACMPCACertificateAuthority_keyStorageSecurityStandard
=== PAUSE TestAccACMPCACertificateAuthority_keyStorageSecurityStandard
=== RUN TestAccACMPCACertificateAuthority_deleteFromActiveState
=== PAUSE TestAccACMPCACertificateAuthority_deleteFromActiveState
=== RUN TestAccACMPCACertificateAuthority_RevocationConfiguration_empty
=== PAUSE TestAccACMPCACertificateAuthority_RevocationConfiguration_empty
=== RUN TestAccACMPCACertificateAuthority_RevocationCrl_customCNAME
=== PAUSE TestAccACMPCACertificateAuthority_RevocationCrl_customCNAME
=== RUN TestAccACMPCACertificateAuthority_RevocationCrl_enabled
=== PAUSE TestAccACMPCACertificateAuthority_RevocationCrl_enabled
=== RUN TestAccACMPCACertificateAuthority_RevocationCrl_expirationInDays
=== PAUSE TestAccACMPCACertificateAuthority_RevocationCrl_expirationInDays
=== RUN TestAccACMPCACertificateAuthority_RevocationCrl_s3ObjectACL
=== PAUSE TestAccACMPCACertificateAuthority_RevocationCrl_s3ObjectACL
=== RUN TestAccACMPCACertificateAuthority_RevocationOcsp_enabled
=== PAUSE TestAccACMPCACertificateAuthority_RevocationOcsp_enabled
=== RUN TestAccACMPCACertificateAuthority_RevocationOcsp_customCNAME
=== PAUSE TestAccACMPCACertificateAuthority_RevocationOcsp_customCNAME
=== RUN TestAccACMPCACertificateAuthority_tags
=== PAUSE TestAccACMPCACertificateAuthority_tags
=== CONT TestAccACMPCACertificateAuthority_basic
=== CONT TestAccACMPCACertificateAuthority_RevocationCrl_customCNAME
--- PASS: TestAccACMPCACertificateAuthority_basic (19.03s)
=== CONT TestAccACMPCACertificateAuthority_keyStorageSecurityStandard
acctest.go:846: skipping tests; AWS_DEFAULT_REGION (us-west-2) not supported. Supported: [ap-south-2, ap-southeast-3, ap-southeast-4, eu-central-2, eu-south-2, me-central-1]
--- SKIP: TestAccACMPCACertificateAuthority_keyStorageSecurityStandard (0.00s)
=== CONT TestAccACMPCACertificateAuthority_RevocationConfiguration_empty
--- PASS: TestAccACMPCACertificateAuthority_RevocationConfiguration_empty (19.35s)
=== CONT TestAccACMPCACertificateAuthority_deleteFromActiveState
--- PASS: TestAccACMPCACertificateAuthority_deleteFromActiveState (20.39s)
=== CONT TestAccACMPCACertificateAuthority_RevocationOcsp_enabled
--- PASS: TestAccACMPCACertificateAuthority_RevocationCrl_customCNAME (89.89s)
=== CONT TestAccACMPCACertificateAuthority_enabledDeprecated
--- PASS: TestAccACMPCACertificateAuthority_RevocationOcsp_enabled (54.83s)
=== CONT TestAccACMPCACertificateAuthority_tags
--- PASS: TestAccACMPCACertificateAuthority_enabledDeprecated (45.13s)
=== CONT TestAccACMPCACertificateAuthority_usageMode
--- PASS: TestAccACMPCACertificateAuthority_usageMode (17.89s)
=== CONT TestAccACMPCACertificateAuthority_disappears
--- PASS: TestAccACMPCACertificateAuthority_tags (41.63s)
=== CONT TestAccACMPCACertificateAuthority_RevocationCrl_expirationInDays
--- PASS: TestAccACMPCACertificateAuthority_disappears (13.19s)
=== CONT TestAccACMPCACertificateAuthority_RevocationOcsp_customCNAME
--- PASS: TestAccACMPCACertificateAuthority_RevocationCrl_expirationInDays (59.16s)
=== CONT TestAccACMPCACertificateAuthority_RevocationCrl_enabled
--- PASS: TestAccACMPCACertificateAuthority_RevocationOcsp_customCNAME (68.47s)
=== CONT TestAccACMPCACertificateAuthority_RevocationCrl_s3ObjectACL
--- PASS: TestAccACMPCACertificateAuthority_RevocationCrl_s3ObjectACL (44.05s)
--- PASS: TestAccACMPCACertificateAuthority_RevocationCrl_enabled (72.53s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/acmpca 292.091s
% make testacc TESTARGS='-run=TestAccACMPCACertificateAuthorityDataSource_' PKG=acmpca ACCTEST_PARALLELISM=2
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/acmpca/... -v -count 1 -parallel 2 -run=TestAccACMPCACertificateAuthorityDataSource_ -timeout 180m
=== RUN TestAccACMPCACertificateAuthorityDataSource_basic
=== PAUSE TestAccACMPCACertificateAuthorityDataSource_basic
=== RUN TestAccACMPCACertificateAuthorityDataSource_s3ObjectACL
=== PAUSE TestAccACMPCACertificateAuthorityDataSource_s3ObjectACL
=== CONT TestAccACMPCACertificateAuthorityDataSource_basic
=== CONT TestAccACMPCACertificateAuthorityDataSource_s3ObjectACL
--- PASS: TestAccACMPCACertificateAuthorityDataSource_basic (20.43s)
--- PASS: TestAccACMPCACertificateAuthorityDataSource_s3ObjectACL (20.44s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/acmpca 25.895s
@msvbhat Thanks for the contribution 🎉 👏. |
This functionality has been released in v4.67.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. Thank you! |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Description
Adds
key_storage_security_standard
argument toaws_acmpca_certificate_authority
resource. This allows Terraform users to create CA in regions where only non-default standard is supported.Relations
Closes #26267
References
Until now the
aws_acmpca_certificate_authority
resource did not specifyKeyStorageSecurityStandard
(So it defaults toFIPS_140_2_LEVEL_3_OR_HIGHER
). But some regions do not support this default value. So in those regions users must be able to specify a different value. This PR addskey_storage_security_standard
argument which lets users to configure the value based on the region where they want to run.https://docs.aws.amazon.com/privateca/latest/APIReference/API_CreateCertificateAuthority.html
https://docs.aws.amazon.com/privateca/latest/userguide/data-protection.html#private-keys
Output from Acceptance Testing