hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.74k stars 9.1k forks source link

SSL/TLS certificates for Amazon EC2 instances #15910

Open ewbankkit opened 3 years ago

ewbankkit commented 3 years ago

Community Note

Description

ACM for Nitro Enclaves is an enclave application that allows you to use public and private SSL/TLS certificates with your web applications and servers running on Amazon EC2 instances with AWS Nitro Enclaves.

To support such applications a new resource to associate an EC2 instance's IAM role with an ACM certificate is required.

New or Affected Resource(s)

Potential Terraform Configuration

resource "aws_ec2_enclave_certificate_iam_role_association" "example" {
  certificate_arn = aws_acm_certificate.example.arn
  role_arn        = aws_iam_role.example.arn
}

References

Announcement. User Guide.

Requires AWS SDK v1.35.17:

Relates: #15909.

pkruk commented 3 years ago

I can take a look on that!

pkruk commented 3 years ago

I will present a PR in a few days, when I will finish polishing and tests :)

cutler-scott-newrelic commented 3 years ago

Any update to this? Or workarounds? It looks like this is still required per AWS documentation (https://docs.aws.amazon.com/enclaves/latest/user/nitro-enclave-refapp.html - See Step 4)

jbouse commented 3 years ago

Any work progressing on this feature? It appears that the EC2 instance option to enable enclaves and the pre-req SDK changes have been made but they do not complete the solution as you have to be able to associate the ACM certificate to the IAM Role before you can use it as documented and referenced to previously.