Examples

StackDetails
00-static-websiteInfra-as-code 101, static website with S3
01-bucketCreate basic and not-so-basic S3 buckets
02-webserverBasic web server running on EC2 instance
03-fargateWeb server container running on Fargate
04-athenaSimple S3 bucket + Athena database
05-datawarehouseFull-features data warehouse

TODO

Benchmarks

00-static-website

Create

Resources:
    + 4 created

Duration: 16s


real    0m20.272s
user    0m0.394s
sys     0m0.140s

Update to HTML

Resources:
    ~ 1 updated
    3 unchanged

Duration: 3s


real    0m6.560s

Destroy

Resources:
    - 4 deleted

Duration: 3s

The resources in the stack have been deleted, but the history and configuration associated with the stack are still maintained.
If you want to remove the stack completely, run 'pulumi stack rm dev'.

real    0m5.226s

01-bucket

Create

Resources:
    + 3 created

Duration: 11s


real    0m29.058s
user    0m0.519s
sys     0m0.188s

03-fargate

One Fargate service, 2 instances

  • create VPC
  • create ECS cluster
  • create one Fargate service
Resources:
    + 18 created
    15 unchanged

Duration: 3m45s


real    3m57.852s

Additional Fargate service, 2 instances, running in same ECS cluster

Resources:
    + 13 created
    33 unchanged

Duration: 1m47s


real    1m59.553s

Scale down memory from 512 to 256 for all 4 tasks

  • Replace task definitions
  • Update ecs services
Resources:
    ~ 2 updated
    +-2 replaced
    4 changes. 42 unchanged

Duration: 10m20s


real    10m41.261s

Destroy stack

Resources:
    - 46 deleted

Duration: 8m44s

The resources in the stack have been deleted, but the history and configuration associated with the stack are still maintained.
If you want to remove the stack completely, run 'pulumi stack rm dev'.

real    8m49.793s
user    0m2.016s
sys     0m0.596s

04-athena

Create stack

  • Create S3 bucket
  • Create Athena database
  • Create named query
Resources:
    + 4 created

Duration: 22s


real    0m31.929s
user    0m0.297s
sys     0m0.095s

Destroy stack

  • NOTE: 1 bucket not empty, left in place
Resources:
    - 2 deleted

Duration: 7s


real    0m8.908s

05-datawarehouse

Create

Resources:
    + 58 created

Duration: 53s


real    0m59.751s
user    0m3.072s
sys     0m0.656s

Destroy

  • NOTE: two buckets not empty, kept in place
Resources:
    - 47 deleted

Duration: 32s


real    0m35.764s
user    0m2.757s
sys     0m0.244s