Skip to content

r/secretsmanager_secret_policy - new resource#14468

Merged
bill-rich merged 14 commits into
hashicorp:masterfrom
DrFaust92:r/secretsmanager_secret_policy
Nov 2, 2020
Merged

r/secretsmanager_secret_policy - new resource#14468
bill-rich merged 14 commits into
hashicorp:masterfrom
DrFaust92:r/secretsmanager_secret_policy

Conversation

@DrFaust92

@DrFaust92 DrFaust92 commented Aug 4, 2020

Copy link
Copy Markdown
Contributor

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment 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 pull request followers and do not help prioritize the request

Closes #14618
Release note for CHANGELOG:

resource_aws_secretsmanager_secret_policy - new resource

Output from acceptance testing:

$ make testacc TESTARGS='-run=TestAccAwsSecretsManagerSecretPolicy_'
--- PASS: TestAccAwsSecretsManagerSecretPolicy_basic (92.55s)
--- PASS: TestAccAwsSecretsManagerSecretPolicy_blockPublicPolicy (122.51s)
--- PASS: TestAccAwsSecretsManagerSecretPolicy_disappears (48.91s)

@DrFaust92 DrFaust92 requested a review from a team August 4, 2020 19:02
@ghost ghost added size/XL Managed by automation to categorize the size of a PR. provider Pertains to the provider itself, rather than any interaction with AWS. service/secretsmanager Issues and PRs that pertain to the secretsmanager service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. documentation Introduces or discusses updates to documentation. labels Aug 4, 2020
@DrFaust92 DrFaust92 added the new-resource Introduces a new resource. label Aug 4, 2020
@DrFaust92 DrFaust92 force-pushed the r/secretsmanager_secret_policy branch from b9c11da to 230324c Compare August 13, 2020 19:03
@DrFaust92

Copy link
Copy Markdown
Contributor Author

Rebased + added support for blocking public access:

--- PASS: TestAccAwsSecretsManagerSecretPolicy_basic (92.55s)
--- PASS: TestAccAwsSecretsManagerSecretPolicy_blockPublicPolicy (122.51s)
--- PASS: TestAccAwsSecretsManagerSecretPolicy_disappears (48.91s)

@DrFaust92 DrFaust92 force-pushed the r/secretsmanager_secret_policy branch from e69fffb to 5db1047 Compare August 22, 2020 10:56
@haidaraM

haidaraM commented Oct 6, 2020

Copy link
Copy Markdown
Contributor

Hi,
Thanks for this PR :-) Any idea of when this will be merged.

@dblooman

Copy link
Copy Markdown
Contributor

Can we get an update on this PR please 👍

@bill-rich bill-rich self-assigned this Oct 23, 2020

@bill-rich bill-rich left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great overall. I had about one of the conditions that came up twice. Please let me know on those.

return nil
})
if isResourceTimeoutError(err) {
res, err = conn.PutResourcePolicy(input)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is the policy being applied again if the previous attempt timed out? Is this an expected condition?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

return nil
})
if isResourceTimeoutError(err) {
_, err = conn.PutResourcePolicy(input)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above

@DrFaust92 DrFaust92 force-pushed the r/secretsmanager_secret_policy branch from 5db1047 to 91e4655 Compare October 29, 2020 11:26
@DrFaust92

Copy link
Copy Markdown
Contributor Author

Rebased for acceptance test config lint

@bill-rich bill-rich left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I got my question answered. LGTM

@bill-rich bill-rich merged commit 0788cd2 into hashicorp:master Nov 2, 2020
@ghost

ghost commented Dec 3, 2020

Copy link
Copy Markdown

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!

@ghost ghost locked as resolved and limited conversation to collaborators Dec 3, 2020
@DrFaust92 DrFaust92 deleted the r/secretsmanager_secret_policy branch April 15, 2021 10:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

documentation Introduces or discusses updates to documentation. new-resource Introduces a new resource. provider Pertains to the provider itself, rather than any interaction with AWS. service/secretsmanager Issues and PRs that pertain to the secretsmanager service. size/XL Managed by automation to categorize the size of a PR. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

New resource aws_secretsmanager_resource_policy

5 participants