sparse-library-18327
08/02/2024, 2:38 AMself.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.future-hairdresser-70637
08/05/2024, 10:15 PMiam_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