sparse-intern-71089
02/10/2022, 2:18 PMechoing-dinner-19531
02/10/2022, 2:23 PMCan I use Pulumi to generate Terraform creation/update/deletion scripts managed by an external stack?This isn't possible. The values for pulumi programs come the user program and we can't run and inspect that without actually doing a the update operations associated with it.
most-pager-34456
02/10/2022, 2:27 PMPulumidiff-scriptmost-pager-34456
02/10/2022, 2:28 PMmost-pager-34456
02/10/2022, 2:29 PMechoing-dinner-19531
02/10/2022, 3:01 PMSomething like a dry run that outputs a scriptYeh that type of thing isn't possible. Consider a really simple pulumi program like the below:
const store = new aws.s3.Bucket("kops-state-store");
const cluster = new eksdistro.Cluster("cluster", {
    name: "<http://luke.cluster.pulumi-demos.net|luke.cluster.pulumi-demos.net>",
    state: pulumi.interpolate`s3://${store.id}`,
});idconst bucket = new aws.s3.Bucket("some-bucket");
const nmae = bucket.id.apply(some_http_call_to_get_name_based_on_bucket_id)
const cluster = new eksdistro.Cluster("cluster", {
    name: name,
    state: pulumi.interpolate`s3://${store.id}`,
});pulumi importmost-pager-34456
02/10/2022, 3:07 PMpulumi-awsxmost-pager-34456
02/10/2022, 3:08 PMechoing-dinner-19531
02/10/2022, 3:11 PMmost-pager-34456
02/10/2022, 3:14 PMpulumi-awsxechoing-dinner-19531
02/10/2022, 3:16 PMechoing-dinner-19531
02/10/2022, 3:17 PMlimited-rainbow-51650
02/10/2022, 4:16 PMagreeable-eye-87399
02/12/2022, 12:54 AMagreeable-eye-87399
02/12/2022, 12:55 AMmost-pager-34456
02/12/2022, 1:57 AM