Skip to content

Commit 4e71675

Browse files
authored
docs: correct code example in README of aws-cdk-lib/pipelines (#33354)
The code example in question mixed us-west-1 and us-east-1 in the same resource, which does not make sense and may be confusing. Replace mentions of us-east-1 with us-west-1. ### Issue # (if applicable) Closes #<issue number here>. ### Reason for this change I was reading through the CDK docs for the pipeline constructs and I saw this typo in the code example, so I wanted to get it fixed. ### Description of changes I edited a code example in a README file to correct a documentation inconsistency. ### Describe any new or updated permissions being added N/A ### Description of how you validated changes N/A. No changes to functional components. ### Checklist - [X] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent a2166e2 commit 4e71675

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/aws-cdk-lib/pipelines/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1299,11 +1299,11 @@ declare const sharedXRegionUsWest1KeyArn: string;
12991299
declare const sharedXRegionUsWest2BucketArn: string;
13001300
declare const sharedXRegionUsWest2KeyArn: string;
13011301

1302-
const usWest1Bucket = s3.Bucket.fromBucketAttributes(scope, 'UsEast1Bucket', {
1302+
const usWest1Bucket = s3.Bucket.fromBucketAttributes(scope, 'UsWest1Bucket', {
13031303
bucketArn: sharedXRegionUsWest1BucketArn,
13041304
encryptionKey: kms.Key.fromKeyArn(
13051305
scope,
1306-
'UsEast1BucketKeyArn',
1306+
'UsWest1BucketKeyArn',
13071307
sharedXRegionUsWest1BucketArn
13081308
),
13091309
});

0 commit comments

Comments
 (0)