sparse-intern-71089
08/12/2018, 8:48 PMbig-piano-35669
pulumi refresh
will read everything back. We are discussing an import
command that automates this: https://github.com/pulumi/pulumi/issues/1635.
In the absence, @white-balloon-205 or @microscopic-florist-22719 may have tips.dazzling-scientist-80826
08/12/2018, 9:18 PMdazzling-scientist-80826
08/12/2018, 9:19 PMdazzling-scientist-80826
08/12/2018, 9:19 PMdazzling-scientist-80826
08/12/2018, 9:20 PMdazzling-scientist-80826
08/12/2018, 9:20 PMdazzling-scientist-80826
08/12/2018, 9:21 PMpulumi stack export
?big-piano-35669
pulumi stack export
will dump it to stdout, and pulumi stack import
will re-read it from stdin. (Although we track history, we don't have great support for going back in time to get historical checkpoints, so I'd recommend backing things up before manual edits.)big-piano-35669
dazzling-scientist-80826
08/12/2018, 9:24 PMbig-piano-35669
pulumi up
, you'd say pulumi import
and it'd compute the resources and then let you pick resources from your current AWS account to form the checkpoint state? Basically, adopting them one at a time?dazzling-scientist-80826
08/12/2018, 9:24 PMbig-piano-35669
dazzling-scientist-80826
08/12/2018, 9:24 PMdazzling-scientist-80826
08/12/2018, 9:25 PMbig-piano-35669
dazzling-scientist-80826
08/12/2018, 9:26 PMdazzling-scientist-80826
08/12/2018, 9:26 PMbig-piano-35669
dazzling-scientist-80826
08/12/2018, 9:27 PMdazzling-scientist-80826
08/12/2018, 9:27 PMdazzling-scientist-80826
08/12/2018, 9:27 PMdazzling-scientist-80826
08/12/2018, 9:28 PMbig-piano-35669
big-piano-35669
pulumi refresh
and it'll use those values to look up the resources and populate all of the state for them.dazzling-scientist-80826
08/12/2018, 9:30 PMdazzling-scientist-80826
08/12/2018, 9:30 PMbig-piano-35669
dazzling-scientist-80826
08/12/2018, 9:30 PMbig-piano-35669
big-piano-35669
dazzling-scientist-80826
08/12/2018, 9:31 PMbig-piano-35669
{
"urn": "urn:pulumi:joe-thumbnailer::video-thumbnailer::cloud:bucket:Bucket$aws:s3/bucket:Bucket::bucket",
"custom": true,
"id": "bucket-e2ed56f",
"type": "aws:s3/bucket:Bucket",
"inputs": {
"acl": "private",
"bucket": "bucket-e2ed56f",
"forceDestroy": true,
"serverSideEncryptionConfiguration": {
"rule": {
"applyServerSideEncryptionByDefault": {
"sseAlgorithm": "AES256"
}
}
}
},
"outputs": {
"accelerationStatus": "",
"acl": "private",
"arn": "arn:aws:s3:::bucket-e2ed56f",
"bucket": "bucket-e2ed56f",
"bucketDomainName": "<http://bucket-e2ed56f.s3.amazonaws.com|bucket-e2ed56f.s3.amazonaws.com>",
"bucketRegionalDomainName": "<http://bucket-e2ed56f.s3.us-west-2.amazonaws.com|bucket-e2ed56f.s3.us-west-2.amazonaws.com>",
"corsRules": [],
"forceDestroy": true,
"hostedZoneId": "Z3BJ6K6RIION7M",
"id": "bucket-e2ed56f",
"loggings": [],
"region": "us-west-2",
"requestPayer": "BucketOwner",
"serverSideEncryptionConfiguration": {
"rule": {
"applyServerSideEncryptionByDefault": {
"kmsMasterKeyId": "",
"sseAlgorithm": "AES256"
}
}
},
"tags": {},
"versioning": {
"enabled": false,
"mfaDelete": false
}
},
"parent": "urn:pulumi:joe-thumbnailer::video-thumbnailer::cloud:bucket:Bucket::bucket",
"dependencies": [],
"initErrors": null,
"provider": "urn:pulumi:joe-thumbnailer::video-thumbnailer::pulumi:providers:aws::default::5532a60a-758b-4589-bddb-98f4670e6fb9"
},
big-piano-35669
{
"urn": "urn:pulumi:joe-thumbnailer::video-thumbnailer::cloud:bucket:Bucket$aws:s3/bucket:Bucket::bucket",
"custom": true,
"id": "bucket-e2ed56f",
"type": "aws:s3/bucket:Bucket",
"inputs": {
},
"outputs": {
},
"parent": "urn:pulumi:joe-thumbnailer::video-thumbnailer::cloud:bucket:Bucket::bucket",
"dependencies": [],
"initErrors": null,
"provider": "urn:pulumi:joe-thumbnailer::video-thumbnailer::pulumi:providers:aws::default::5532a60a-758b-4589-bddb-98f4670e6fb9"
},
And ran pulumi refresh
, the properties would get read back from my actual AWS account.big-piano-35669
big-piano-35669
dazzling-scientist-80826
08/12/2018, 9:33 PMdazzling-scientist-80826
08/12/2018, 9:34 PMdazzling-scientist-80826
08/12/2018, 9:34 PMbig-piano-35669
big-piano-35669
dazzling-scientist-80826
08/12/2018, 9:39 PM