Guest User

Untitled

a guest
Aug 19th, 2019
74
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/usr/bin/env node
  2. import 'source-map-support/register';
  3. import * as cdk from '@aws-cdk/core';
  4. import * as s3 from '@aws-cdk/aws-s3';
  5.  
  6. /**
  7. * npm run build
  8. * cdk deploy --profile demo BucketStack
  9. * change code
  10. * cdk diff --profile demo BucketStack
  11. * cdk deploy --profile demo BucketStack
  12. * cdk destroy --profile demo BucketStack
  13. */
  14.  
  15. const myApp = new cdk.App();
  16. const stack = new cdk.Stack(myApp, 'BucketStack');
  17. new s3.Bucket(stack, 'ExampleBucket', {
  18. removalPolicy: cdk.RemovalPolicy.DESTROY,
  19. // encryption: s3.BucketEncryption.S3_MANAGED,
  20. });
  21. myApp.synth();
RAW Paste Data