Don't remove secret, just deprecate it

This commit is contained in:
Mickaël Canévet 2016-12-13 11:31:32 +01:00
parent 04812b60d2
commit 3ab5c630bd
1 changed files with 4 additions and 0 deletions

View File

@ -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 {