chilly-photographer-60932
01/13/2019, 4:49 AMpulumi.Run(func(ctx *pulumi.Context) error {
userArgs := &iam.UserArgs{Name:"test"}
user,e := iam.NewUser(ctx,"test",userArgs)
if e!= nil {
return e
}
accessKeyArgs := &iam.AccessKeyArgs{User:"test"}
key, i := iam.NewAccessKey(ctx, "test", accessKeyArgs)
fmt.Println(key)
if i != nil{
return i
}
profile, e := iam. pulumi.Run(func(ctx *pulumi.Context) error {
userArgs := &iam.UserArgs{Name:"test"}
user,e := iam.NewUser(ctx,"test",userArgs)
if e!= nil {
return e
}
accessKeyArgs := &iam.AccessKeyArgs{User:"test"}
key, i := iam.NewAccessKey(ctx, "test", accessKeyArgs)
fmt.Println(key)
if i != nil{
return i
}
profile, e := iam.NewUserLoginProfile(ctx, "test",
&iam.UserLoginProfileArgs{PasswordLength: 10, PasswordResetRequired: true,
User:"test",PgpKey:key.PgpKey()})
if e != nil {
return e
}
ctx.Export("user", user.Name())
ctx.Export("userNam", profile.URN())
ctx.Export("key", accessKeyArgs.PgpKey)
return nil
})(ctx, "test",
&iam.UserLoginProfileArgs{PasswordLength: 10, PasswordResetRequired: true,
User:"test",PgpKey:key.PgpKey()})
if e != nil {
return e
}
ctx.Export("user", user.Name())
ctx.Export("userNam", profile.URN())
ctx.Export("key", accessKeyArgs.PgpKey)
return nil
})
I am unable to create NewUserLoginProfile
without a PGP key, how do I create one?gorgeous-egg-16927
01/14/2019, 6:01 PMchilly-photographer-60932
01/15/2019, 10:49 PMcreamy-potato-29402
01/16/2019, 4:14 AMchilly-photographer-60932
01/16/2019, 12:19 PMcreamy-potato-29402
01/16/2019, 6:11 PMchilly-photographer-60932
01/16/2019, 6:15 PMcreamy-potato-29402
01/16/2019, 6:15 PMchilly-photographer-60932
01/16/2019, 6:16 PMincalculable-sundown-82514
01/16/2019, 6:17 PMchilly-photographer-60932
01/16/2019, 6:18 PMgentle-diamond-70147
01/16/2019, 6:19 PMchilly-photographer-60932
01/16/2019, 6:23 PMincalculable-sundown-82514
01/16/2019, 6:23 PMchilly-photographer-60932
01/16/2019, 6:26 PMkeybase
incalculable-sundown-82514
01/16/2019, 6:28 PMpgp_key
field to be set: https://github.com/terraform-providers/terraform-provider-aws/blob/f42c7c018da40cc33377c4b6c66a75d5f41ad2ca/aws/resource_aws_iam_user_login_profile.go#L30-L33creamy-potato-29402
01/16/2019, 6:33 PMwhite-balloon-205