This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export class ExportingStack extends Stack { | |
public readonly bucket: Bucket; | |
constructor(scope: Construct, id: string, props: StackProps) { | |
super(scope, id, props); | |
this.bucket = new Bucket(this, 'ExportedBucket'); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Resources": { | |
"ExportedBucket5C9669B4": { | |
"Type": "AWS::S3::Bucket", | |
"UpdateReplacePolicy": "Retain", | |
"DeletionPolicy": "Retain", | |
"Metadata": { | |
"aws:cdk:path": "exp/ExportedBucket/Resource" | |
} | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Outputs": { | |
"bucketArn": { | |
"Value": { | |
"Fn::ImportValue": "exp:ExportsOutputFnGetAttExportedBucket5C9669B4ArnA5E36DA6" | |
} | |
} | |
}, | |
"Resources": { | |
"CDKMetadata": {...} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export class ExportingStack extends Stack { | |
public readonly bucket: Bucket; | |
constructor(scope: Construct, id: string, props: StackProps) { | |
super(scope, id, props); | |
this.bucket = new Bucket(this, 'ExportedBucket'); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Resources": { | |
"ExportedBucket5C9669B4": { | |
"Type": "AWS::S3::Bucket", | |
"UpdateReplacePolicy": "Retain", | |
"DeletionPolicy": "Retain", | |
"Metadata": { | |
"aws:cdk:path": "exp/ExportedBucket/Resource" | |
} | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Outputs": { | |
"bucketDomainName": { | |
"Value": { | |
"Fn::ImportValue": "exp:ExportsOutputFnGetAttExportedBucket5C9669B4DomainNameF044215B" | |
} | |
} | |
}, | |
"Resources": { | |
"CDKMetadata": {...} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export class ExportingStack extends Stack { | |
public readonly bucket: Bucket; | |
constructor(scope: Construct, id: string, props: StackProps) { | |
super(scope, id, props); | |
this.bucket = new Bucket(this, 'ExportedBucket'); | |
// Create the output to break the dependency conflict | |
const output = new CfnOutput(this, 'myTempOutput', { | |
value: 'arn:aws:s3:::exp-exportedbucket5c9669b4-1rik6ssb94d7x', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Resources": { | |
"ExportedBucket5C9669B4": { | |
"Type": "AWS::S3::Bucket", | |
"UpdateReplacePolicy": "Retain", | |
"DeletionPolicy": "Retain", | |
"Metadata": { | |
"aws:cdk:path": "exp/ExportedBucket/Resource" | |
} | |
}, |