Skip to content

Latest commit

 

History

History
47 lines (31 loc) · 1.2 KB

aws_credentials.md

File metadata and controls

47 lines (31 loc) · 1.2 KB
page_title subcategory description
env0_aws_credentials Resource - terraform-provider-env0

env0_aws_credentials (Resource)

Example Usage

resource "env0_aws_credentials" "credentials" {
  name = "example"
  arn  = "Example role ARN"
}

Schema

Required

  • name (String) name for the credentials

Optional

  • access_key_id (String, Sensitive) the aws access key id
  • arn (String) the aws role arn
  • duration (Number) the session duration in seconds for AWS_ASSUMED_ROLE_FOR_DEPLOYMENT. If set must be one of the following: 3600 (1h), 7200 (2h), 14400 (4h), 18000 (5h default), 28800 (8h), 43200 (12h)
  • secret_access_key (String, Sensitive) the aws access key secret. In case your organization is self-hosted, please use a secret reference in the shape of ${ssm:}

Read-Only

  • id (String) The ID of this resource.

Import

Import is supported using the following syntax:

terraform import env0_aws_credentials.by_id d31a6b30-5f69-4d24-937c-22322754934e
terraform import env0_aws_credentials.by_name "credentials name"