-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add awsutils_expiring_iam_access_key resource (#21)
- Loading branch information
Showing
12 changed files
with
822 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "awsutils_expiring_iam_access_key Resource - terraform-provider-awsutils" | ||
subcategory: "" | ||
description: |- | ||
Provides an IAM access key that expires after max_age seconds. This is a set of credentials that allow API requests to be made as an IAM user. | ||
--- | ||
|
||
# Resource `awsutils_expiring_iam_access_key` | ||
|
||
Provides an IAM access key that expires after max_age seconds. This is a set of credentials that allow API requests to be made as an IAM user. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
terraform { | ||
required_providers { | ||
awsutils = { | ||
source = "cloudposse/awsutils" | ||
# For local development, | ||
# install the provider on local computer by running `make install` from the root of the repo, and uncomment the | ||
# version below | ||
# version = "9999.99.99" | ||
} | ||
} | ||
} | ||
provider "awsutils" { | ||
region = "us-east-1" | ||
} | ||
resource "aws_iam_user" "test" { | ||
name = "test" | ||
path = "/test/" | ||
} | ||
resource "awsutils_expiring_iam_access_key" "test" { | ||
user = aws_iam_user.test.name | ||
max_age = 60 * 60 * 24 * 30 # 30 days | ||
} | ||
output "id" { | ||
value = awsutils_expiring_iam_access_key.test.id | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- **user** (String) | ||
|
||
### Optional | ||
|
||
- **id** (String) The ID of this resource. | ||
- **max_age** (Number) | ||
- **pgp_key** (String) | ||
- **status** (String) | ||
|
||
### Read-only | ||
|
||
- **create_date** (String) | ||
- **encrypted_secret** (String) | ||
- **encrypted_ses_smtp_password_v4** (String) | ||
- **expiration_date** (String) | ||
- **key_fingerprint** (String) | ||
- **secret** (String, Sensitive) | ||
- **ses_smtp_password_v4** (String, Sensitive) | ||
|
||
|
29 changes: 29 additions & 0 deletions
29
examples/resources/awsutils_expiring_iam_access_key/resource.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
terraform { | ||
required_providers { | ||
awsutils = { | ||
source = "cloudposse/awsutils" | ||
# For local development, | ||
# install the provider on local computer by running `make install` from the root of the repo, and uncomment the | ||
# version below | ||
# version = "9999.99.99" | ||
} | ||
} | ||
} | ||
|
||
provider "awsutils" { | ||
region = "us-east-1" | ||
} | ||
|
||
resource "aws_iam_user" "test" { | ||
name = "test" | ||
path = "/test/" | ||
} | ||
|
||
resource "awsutils_expiring_iam_access_key" "test" { | ||
user = aws_iam_user.test.name | ||
max_age = 60 * 60 * 24 * 30 # 30 days | ||
} | ||
|
||
output "id" { | ||
value = awsutils_expiring_iam_access_key.test.id | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.