Skip to content

Commit

Permalink
chore(pipelines): added troubleshooting sub-section for the "S3 error…
Browse files Browse the repository at this point in the history
…: Access Denied" case (#14986)

Related to #14944

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
otaviomacedo authored Jun 8, 2021
1 parent ebac8bc commit 7c98fb2
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions packages/@aws-cdk/pipelines/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -815,6 +815,26 @@ After turning on `privilegedMode: true`, you will need to do a one-time manual c
pipeline to get it going again (as with a broken 'synth' the pipeline will not be able to self
update to the right state).

### S3 error: Access Denied

Some constructs, such as EKS clusters, generate nested stacks. When CloudFormation tries
to deploy those stacks, it may fail with this error:

```console
S3 error: Access Denied For more information check http://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html
```

This happens because the pipeline is not self-mutating and, as a consequence, the `FileAssetX`
build projects get out-of-sync with the generated templates. To fix this, make sure the
`selfMutating` property is set to `true`:

```typescript
const pipeline = new CdkPipeline(this, 'MyPipeline', {
selfMutating: true,
...
});
```

## Current Limitations

Limitations that we are aware of and will address:
Expand Down

0 comments on commit 7c98fb2

Please sign in to comment.