Skip to content

Commit

Permalink
Merge pull request #176 from Cox-Automotive/force-recreate-on-max-ses…
Browse files Browse the repository at this point in the history
…sion-duration

Force recreate on max session duration
  • Loading branch information
elliottzack429 committed Aug 25, 2022
2 parents 8ac532a + b2078e7 commit 2ec5b85
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/guides/local_installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ mkdir -p ~/.terraform.d/plugins &&

```sh
mkdir -p ~/.terraform.d/plugins/Cox-Automotive/engineering-enablement/alks/2.0.5/darwin_amd64 &&
curl -Ls https://api.github.com/repos/Cox-Automotive/terraform-provider-alks/releases | jq -r --arg release "v2.5.0" --arg arch "$(uname -s | tr A-Z a-z)" '.[] | select(.tag_name | contains($release)) | .assets[]| select(.browser_download_url | contains($arch)) | select(.browser_download_url | contains("amd64")) | .browser_download_url' |
curl -Ls https://api.github.com/repos/Cox-Automotive/terraform-provider-alks/releases | jq -r --arg release "v2.5.1" --arg arch "$(uname -s | tr A-Z a-z)" '.[] | select(.tag_name | contains($release)) | .assets[]| select(.browser_download_url | contains($arch)) | select(.browser_download_url | contains("amd64")) | .browser_download_url' |
xargs -n 1 curl -Lo ~/.terraform.d/plugins/Cox-Automotive/engineering-enablement/alks/2.0.5/darwin_amd64/terraform-provider-alks.zip &&
pushd ~/.terraform.d/plugins/Cox-Automotive/engineering-enablement/alks/2.0.5/darwin_amd64 &&
unzip ~/.terraform.d/plugins/Cox-Automotive/engineering-enablement/alks/2.0.5/darwin_amd64/terraform-provider-alks.zip -d terraform-provider-alks-tmp &&
Expand Down
2 changes: 1 addition & 1 deletion docs/resources/alks_iamrole.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ The following arguments are supported:
* `enable_alks_access` - (Optional) If `true`, allows ALKS calls to be made by instance profiles or Lambda functions making use of this role. Note: This enables **machine identity** capability.
* `template_fields` - (Optional) If present, will submit template field data to ALKS. Note: This will generate an error if the role type does not support template fields.
* `tags` - (Optional) If present, will add specified tags onto role.
* `max_session_duration_in_seconds` - (Optional) If present, will set maximum duration for role
* `max_session_duration_in_seconds` - (Optional) If present, will set maximum duration for role. Change forces re-creation of resource.

## Import

Expand Down
2 changes: 1 addition & 1 deletion docs/resources/alks_iamtrustrole.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ The following arguments are supported:
* `ip_arn` - (Computed) If `role_added_to_ip` was `true` this will provide the ARN of the instance profile role.
* `enable_alks_access` - (Optional) If `true`, allows ALKS calls to be made by instance profiles or Lambda functions making use of this role. Note: This enables **machine identity** capability.
* `tags` - (Optional) If present, will add specified tags onto role.
* `max_session_duration_in_seconds` - (Optional) If present, will set maximum duration for role
* `max_session_duration_in_seconds` - (Optional) If present, will set maximum duration for role. Change forces re-creation of resource.


## Import
Expand Down
1 change: 1 addition & 0 deletions resource_alks_iamrole.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ func resourceAlksIamRole() *schema.Resource {
Type: schema.TypeInt,
Default: 3600,
Optional: true,
ForceNew: true,
},
"tags": TagsSchema(),
"tags_all": TagsSchemaComputed(),
Expand Down
1 change: 1 addition & 0 deletions resource_alks_iamtrustrole.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ func resourceAlksIamTrustRole() *schema.Resource {
Type: schema.TypeInt,
Default: 3600,
Optional: true,
ForceNew: true,
},
"tags": TagsSchema(),
"tags_all": TagsSchemaComputed(),
Expand Down

0 comments on commit 2ec5b85

Please sign in to comment.