-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix updating tags on aws_launch_template (#3687)
Fixes #1504 Due to discrepancies between TF and Pulumi Bridged provider life cycle, editing tags on a Launch Template resource caused failure in pulumi-aws. This is now fixed by opting in this resource to the PlanResourceChange behavior that tracks TF lifecycle more closely.
- Loading branch information
Showing
7 changed files
with
85 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
name: repro-1504 | ||
runtime: | ||
name: python | ||
options: | ||
virtualenv: venv | ||
description: Reproduce pulumi-aws issue 1504 | ||
config: | ||
pulumi:tags: | ||
value: | ||
pulumi:template: aws-python |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import pulumi | ||
import pulumi_aws as aws | ||
|
||
ec2_launch_template = aws.ec2.LaunchTemplate( | ||
"my_launch_template", | ||
image_id="ami-0c55b159cbfafe1f0", | ||
instance_type="t2.micro", | ||
key_name='key1', | ||
tags={"Name": 'tag1'}, | ||
update_default_version=True) | ||
|
||
pulumi.export("launch_template_id", ec2_launch_template.id) | ||
pulumi.export("launch_template_latest_version", ec2_launch_template.latest_version) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pulumi>=3.0.0,<4.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import pulumi | ||
import pulumi_aws as aws | ||
|
||
ec2_launch_template = aws.ec2.LaunchTemplate( | ||
"my_launch_template", | ||
image_id="ami-0c55b159cbfafe1f0", | ||
instance_type="t2.micro", | ||
key_name='key1', | ||
tags={"Name": 'tag2'}, | ||
update_default_version=True) | ||
|
||
pulumi.export("launch_template_id", ec2_launch_template.id) | ||
pulumi.export("launch_template_latest_version", ec2_launch_template.latest_version) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import pulumi | ||
import pulumi_aws as aws | ||
|
||
ec2_launch_template = aws.ec2.LaunchTemplate( | ||
"my_launch_template", | ||
image_id="ami-0c55b159cbfafe1f0", | ||
instance_type="t2.micro", | ||
key_name='key2', | ||
tags={"Name": 'tag2'}, | ||
update_default_version=True) | ||
|
||
pulumi.export("launch_template_id", ec2_launch_template.id) | ||
pulumi.export("launch_template_latest_version", ec2_launch_template.latest_version) |