Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ bundle. Charts gain a radar type, and `deploy.sh` checks who owns its source buc
there (creating it needs AWS CLI v2 2.34.8 or later; the namespace is not available in
Middle East (Bahrain) and Middle East (UAE)). A bucket it creates gets all four Block Public
Access settings and a 7-day expiry for source zips. Deployed stacks are unaffected and need
no redeploy; the next run creates the new bucket, and the old `sdpm-deploy-<account>-<region>`
bucket can be deleted. See [Deploy Guide — Source bucket](docs/en/deploy-cloudshell.md#source-bucket)
for how to check the old bucket.
no redeploy; the next run creates the new bucket. Keep the old `sdpm-deploy-<account>-<region>`
bucket until every copy of `deploy.sh` you run is updated, then delete it. See
[Deploy Guide — Source bucket](docs/en/deploy-cloudshell.md#source-bucket) for how to check it.

### Changed

Expand Down
11 changes: 7 additions & 4 deletions docs/en/deploy-cloudshell.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,16 +185,19 @@ without checking the bucket owner.

- Deployed stacks are unaffected and need no redeploy: the source bucket is used only while
`deploy.sh` runs.
- The next `deploy.sh` run creates the new `-an` bucket. The old bucket is no longer used and
can be deleted.
- The next `deploy.sh` run creates the new `-an` bucket and stops using the old one.
- Keep the old bucket until every copy of `deploy.sh` you or your team run is updated. A
copy from before this change still uploads to the old bucket name, and once the bucket is
deleted that name is free for any account to create. While you own the bucket, an old copy
uploads only to you.
- Check who owns the old bucket:

```bash
aws s3api head-bucket --bucket sdpm-deploy-<account-id>-<region> --expected-bucket-owner <account-id>
```

- Success: the bucket is yours. Delete it when you no longer need it
(`aws s3 rb s3://sdpm-deploy-<account-id>-<region> --force`).
- Success: the bucket is yours. Once no old copy of `deploy.sh` is run any more, you can
empty and delete it (`aws s3 rb s3://sdpm-deploy-<account-id>-<region> --force`).
- `403 Forbidden`: the bucket may belong to another account. Review the build history of the
`sdpm-deploy` CodeBuild project (the source location of each build) and the CloudTrail
activity of the `sdpm-deploy-role` IAM role, and rotate credentials as needed.
Expand Down
Loading