Has anyone been able to use an instance profile on...
# aws
a
Has anyone been able to use an instance profile on an EC2 instance for authenticating with the default AWS provider? It seems like it defaults to disabling the EC2 metadata access and validating credentials. I was able to override those values and get things working on <5.0 but I'm hitting the same set of errors again after the update.
b
@astonishing-quill-88807 I think this was fixed in 5.1.0 of the provider
a
Thanks! I'll give that a try
Looks like we're actually already running 5.1.0 and still hitting this error. Has there been any movement on flipping the default bit for EC2 metadata access in the provider? https://github.com/pulumi/pulumi-aws/issues/1692
b
I don't think there's any movement on the defaults, if you set the env var/config value it should work
a
Unfortunately the env var doesn't seem to be having any impact
The config value was working on <5.x but doesn't appear to be functional on 5.1
b
okay, that's definitely a bug. could you file an issue?
b
Hi @astonishing-quill-88807 - what env var were you setting?
a
I was using
AWS_EC2_METADATA_DISABLED=false
b
Ok I'll look into this for you
a
I appreciate it!