Skip to content

Instantly share code, notes, and snippets.

View mgjam's full-sized avatar

Milan Gatyás mgjam

  • Czech Republic
View GitHub Profile
{
"Outputs": {
"bucketDomainName": {
"Value": {
"Fn::ImportValue": "exp:ExportsOutputFnGetAttExportedBucket5C9669B4DomainNameF044215B"
}
}
},
"Resources": {
"CDKMetadata": {...}
{
"Resources": {
"ExportedBucket5C9669B4": {
"Type": "AWS::S3::Bucket",
"UpdateReplacePolicy": "Retain",
"DeletionPolicy": "Retain",
"Metadata": {
"aws:cdk:path": "exp/ExportedBucket/Resource"
}
},
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',
{
"Outputs": {
"bucketDomainName": {
"Value": {
"Fn::ImportValue": "exp:ExportsOutputFnGetAttExportedBucket5C9669B4DomainNameF044215B"
}
}
},
"Resources": {
"CDKMetadata": {...}
{
"Resources": {
"ExportedBucket5C9669B4": {
"Type": "AWS::S3::Bucket",
"UpdateReplacePolicy": "Retain",
"DeletionPolicy": "Retain",
"Metadata": {
"aws:cdk:path": "exp/ExportedBucket/Resource"
}
},
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');
}
}
@mgjam
mgjam / cdkdep-4.md
Last active October 20, 2021 15:10

deploy1