limited-rainbow-51650
07/19/2019, 10:21 AMresource "aws_iam_user_login_profile" "ringo" {
user = aws_iam_user.ringo.name
pgp_key = "keybase:ringods"
}
to Pulumi TS code
const iam_user_login_profile_ringo = new aws.iam.UserLoginProfile("ringo",
{
user: iam_user_ringo.name,
pgpKey: "keybase:ringods"
},
{
import: "ringo"
})
But on preview
, I get this warning:
...
= └─ aws:iam:UserLoginProfile ringo import [diff: +pgpKey]; 1 warning
Diagnostics:
aws:iam:UserLoginProfile (ringo):
warning: inputs to import do not match the existing resource; importing this resource will fail
The PGP key indicator is the same string. How come a difference is detected?ambitious-van-68615
07/19/2019, 10:31 AMtfstate
ambitious-van-68615
07/19/2019, 10:32 AMpulumi refresh
if your resource does really exist ?limited-rainbow-51650
07/19/2019, 10:52 AMrefresh
didn’t help. But I guess this has something to do with some of the properties of a UserLoginProfile only done at creation time. Not sure if import
is applicable for this type of resource. From the docs:
pgpKey: Either a base-64 encoded PGP public key, or a keybase username in the form. Only applies on resource creation. Drift detection is not possible with this argument.keybase:username
limited-rainbow-51650
07/19/2019, 11:32 AMUserLoginProfile
resource. It gave me a new password and I am all set.ambitious-van-68615
07/19/2019, 12:49 PMmicroscopic-florist-22719
UserLoginProfile
state from AWS, and so we see a difference.microscopic-florist-22719
ignoreChanges
resource option to handle cases like this.limited-rainbow-51650
08/02/2019, 7:48 AMmicroscopic-florist-22719