I have a first draft of an ec2 instance. It deployed just fine with some values passed in as parame...
s
I have a first draft of an ec2 instance. It deployed just fine with some values passed in as parameters like this.
self.instance = aws.ec2.Instance(
resource_name,
ami=args.ami_id,
instance_type=args.type,
vpc_security_group_ids=args.security_groups,
subnet_id=args.subnet_id,
tags=args.base_tags,
ebs_block_devices=args.volumes
)
Then I pass in a string value for the instance profile, which it accepts just fine and applies in aws.
self.instance = aws.ec2.Instance(
resource_name,
ami=args.ami_id,
instance_type=args.type,
vpc_security_group_ids=args.security_groups,
subnet_id=args.subnet_id,
tags=args.base_tags,
ebs_block_devices=args.volumes,
iam_instance_profile=args.instance_profile       #THIS LINE HERE
)
When I then go back and remove that entire iam_instance_profile line and restore it back to the first scenario, it does not list the change in the pulumi diff and also does not remove it from the instance in aws. (python) Is there a proper way of removing the instance profile or is this a bug? I've already tried upgrading pulumi to the latest.
f
👋 hm I can confirm that removing the
iam_instance_profile
does not remove the instance profile from the instance nor the role probably hitting https://github.com/hashicorp/terraform-provider-aws/issues/22111 via the bridge provider