enclave_certificate_iam_role_association
Gets or updates an individual enclave_certificate_iam_role_association
resource, use enclave_certificate_iam_role_associations
to retrieve a list of resources or to create or delete a resource.
Overview
Name | enclave_certificate_iam_role_association |
Type | Resource |
Description | Associates an AWS Identity and Access Management (IAM) role with an AWS Certificate Manager (ACM) certificate. This association is based on Amazon Resource Names and it enables the certificate to be used by the ACM for Nitro Enclaves application inside an enclave. |
Id | aws.ec2.enclave_certificate_iam_role_association |
Fields
Name | Datatype | Description |
---|---|---|
certificate_arn | string | The Amazon Resource Name (ARN) of the ACM certificate with which to associate the IAM role. |
role_arn | string | The Amazon Resource Name (ARN) of the IAM role to associate with the ACM certificate. You can associate up to 16 IAM roles with an ACM certificate. |
certificate_s3_bucket_name | string | The name of the Amazon S3 bucket to which the certificate was uploaded. |
certificate_s3_object_key | string | The Amazon S3 object key where the certificate, certificate chain, and encrypted private key bundle are stored. |
encryption_kms_key_id | string | The ID of the AWS KMS CMK used to encrypt the private key of the certificate. |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
get_resource | SELECT | data__Identifier, region |
SELECT
Example
SELECT
region,
certificate_arn,
role_arn,
certificate_s3_bucket_name,
certificate_s3_object_key,
encryption_kms_key_id
FROM aws.ec2.enclave_certificate_iam_role_association
WHERE region = 'us-east-1' AND data__Identifier = '<CertificateArn>|<RoleArn>';
Permissions
To operate on the enclave_certificate_iam_role_association
resource, the following permissions are required:
Read
ec2:GetAssociatedEnclaveCertificateIamRoles