Skip to content

feat(backup): expose method to add statements to the vault policy#16597

Merged
mergify[bot] merged 4 commits intoaws:masterfrom
jogold:backup-add-to-access-policy
Sep 24, 2021
Merged

feat(backup): expose method to add statements to the vault policy#16597
mergify[bot] merged 4 commits intoaws:masterfrom
jogold:backup-add-to-access-policy

Conversation

@jogold
Copy link
Copy Markdown
Contributor

@jogold jogold commented Sep 22, 2021

Add vault.addToAccessPolicy() and vault.blockRecoveryPointDeletion().

A vault is automatically created when creating a plan:

const plan = new backup.BackupPlan(this, 'BackupPlan');

Theses methods allow, among other things, to customize the access policy of
the automatically created vault:

plan.backupVault.addToAccessPolicy(...);

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@gitpod-io
Copy link
Copy Markdown

gitpod-io bot commented Sep 22, 2021

@jogold
Copy link
Copy Markdown
Contributor Author

jogold commented Sep 22, 2021

@kaizen3031593

@kaizencc kaizencc self-requested a review September 22, 2021 13:34
@kaizencc kaizencc self-assigned this Sep 22, 2021
Copy link
Copy Markdown
Contributor

@kaizencc kaizencc left a comment

Choose a reason for hiding this comment

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

Hi @jogold! Thanks for the contribution! Just one small comment.

Copy link
Copy Markdown
Contributor

@kaizencc kaizencc left a comment

Choose a reason for hiding this comment

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

Code looks good, just a tiny nit in the README and then we're good to go!

Co-authored-by: kaizen3031593 <36202692+kaizen3031593@users.noreply.github.com>
@mergify mergify bot dismissed kaizencc’s stale review September 24, 2021 17:06

Pull request has been modified.

@jogold jogold requested a review from kaizencc September 24, 2021 17:09
@mergify mergify bot merged commit 3ff1537 into aws:master Sep 24, 2021
@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Sep 24, 2021

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@aws-cdk-automation
Copy link
Copy Markdown
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject89A8053A-LhjRyN9kxr8o
  • Commit ID: f5fbd07
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@jogold jogold deleted the backup-add-to-access-policy branch September 24, 2021 19:05
ryparker pushed a commit that referenced this pull request Sep 24, 2021
…6597)

Add `vault.addToAccessPolicy()` and `vault.blockRecoveryPointDeletion()`.

A vault is automatically created when creating a plan:

```ts
const plan = new backup.BackupPlan(this, 'BackupPlan');
```

Theses methods allow, among other things, to customize the access policy of
the automatically created vault:

```ts
plan.backupVault.addToAccessPolicy(...);
```


----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants