important-sugar-9877
04/04/2022, 12:08 PMechoing-dinner-19531
04/04/2022, 1:16 PMImporting (for example) IAM users with “pulumi import awsiam/userUser…” but the resulting code is missing properties that are present/configurable in my existing templateThat would be an import bug, if you can raise an issue at https://github.com/pulumi/pulumi-aws with a repro for this we could take a look. "import" should codegen for all non-default properties.
important-sugar-9877
04/04/2022, 1:48 PM...
Parameters:
UserName:
Type: String
Description: A name for the IAM user.
VariablesJSON:
Type: String
Description: A stringified...
Default: '{"S3BucketName":"s3name"}'
PolicyName:
Type: String
Description: A policy name.
DMZTag:
Type: String
Description: (Optional) Description...
Default: "NONE"
AllowedValues:
...
When importing the existing IAMUser using pulumi
$ pulumi import aws:iam/user:User user-storage-ro user-storage-ro
this is all the code generated
user_storage_ro = aws.iam.User(
"user-storage-ro",
name="user-storage-ro",
opts=pulumi.ResourceOptions(protect=True))
echoing-dinner-19531
04/04/2022, 1:55 PMimportant-sugar-9877
04/04/2022, 1:59 PMechoing-dinner-19531
04/04/2022, 2:28 PMimportant-sugar-9877
04/04/2022, 2:32 PMechoing-dinner-19531
04/04/2022, 3:11 PM