Don't remove secret, just deprecate it
This commit is contained in:
parent
04812b60d2
commit
3ab5c630bd
|
@ -72,6 +72,10 @@ func resourceAwsIamAccessKeyCreate(d *schema.ResourceData, meta interface{}) err
|
|||
)
|
||||
}
|
||||
|
||||
if err := d.Set("secret", createResp.AccessKey.SecretAccessKey); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
d.SetId(*createResp.AccessKey.AccessKeyId)
|
||||
|
||||
if createResp.AccessKey == nil || createResp.AccessKey.SecretAccessKey == nil {
|
||||
|
|
Loading…
Reference in New Issue