Skip to main content

enclave_certificate_iam_role_associations

Creates, updates, deletes or gets an enclave_certificate_iam_role_association resource or lists enclave_certificate_iam_role_associations in a region

Overview

Nameenclave_certificate_iam_role_associations
TypeResource
DescriptionAssociates 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.
Idawscc.ec2.enclave_certificate_iam_role_associations

Fields

NameDatatypeDescription
certificate_arnstringThe Amazon Resource Name (ARN) of the ACM certificate with which to associate the IAM role.
role_arnstringThe 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_namestringThe name of the Amazon S3 bucket to which the certificate was uploaded.
certificate_s3_object_keystringThe Amazon S3 object key where the certificate, certificate chain, and encrypted private key bundle are stored.
encryption_kms_key_idstringThe ID of the AWS KMS CMK used to encrypt the private key of the certificate.
regionstringAWS region.

For more information, see AWS::EC2::EnclaveCertificateIamRoleAssociation.

Methods

NameResourceAccessible byRequired Params
create_resourceenclave_certificate_iam_role_associationsINSERTCertificateArn, RoleArn, region
delete_resourceenclave_certificate_iam_role_associationsDELETEIdentifier, region
list_resourcesenclave_certificate_iam_role_associations_list_onlySELECTregion
get_resourceenclave_certificate_iam_role_associationsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual enclave_certificate_iam_role_association.

SELECT
region,
certificate_arn,
role_arn,
certificate_s3_bucket_name,
certificate_s3_object_key,
encryption_kms_key_id
FROM awscc.ec2.enclave_certificate_iam_role_associations
WHERE
region = 'us-east-1' AND
Identifier = '{{ certificate_arn }}|{{ role_arn }}';

INSERT example

Use the following StackQL query and manifest file to create a new enclave_certificate_iam_role_association resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.ec2.enclave_certificate_iam_role_associations (
CertificateArn,
RoleArn,
region
)
SELECT
'{{ certificate_arn }}',
'{{ role_arn }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM awscc.ec2.enclave_certificate_iam_role_associations
WHERE
Identifier = '{{ certificate_arn }}|{{ role_arn }}' AND
region = 'us-east-1';

Permissions

To operate on the enclave_certificate_iam_role_associations resource, the following permissions are required:

ec2:AssociateEnclaveCertificateIamRole,
ec2:GetAssociatedEnclaveCertificateIamRoles