AWS Credentials

AWS credentials configuration for secure authentication and access management.

Requirements

Name

Version

terraform

>= 1.0

null

>= 3.2.1

random

>= 3.4.3

Providers

Name

Version

null

>= 3.2.1

random

>= 3.4.3

Modules

No modules.

Resources

Name

Type

null_resource.encrypt

resource

random_password.password

resource

random_string.user

resource

Inputs

Name

Description

Type

Default

Required

directory_path

Path to directory where to save the encrypted file of credentials

string

"./generated/credentials"

no

kms_key_id

KMS to encrypt the file of credentials

string

n/a

yes

region

Region

string

n/a

yes

resource_name

Resource name for which the credentials are created

string

n/a

yes

user

User credentials

object({
username = string
password = string
})

n/a

yes

Outputs

Name

Description

encrypted_file

Path of the encrypted file

kms_key_id

KMS ARN with which the credentilas are encrypted

password

Password of the resource

username

Username of the resource