AWS Amazon EC2 Permission

This page shows how to write Terraform for Amazon EC2 Permission and write them securely.

code-icon

Fix issues in your cloud & app configurations

Test for misconfigurations of this resource in your cloud.

get-started-button

Terraform Example (aws_snapshot_create_volume_permission)

Adds permission to create volumes off of a given EBS Snapshot.

Parameters

Example Usage (from GitHub)

github-iconMurtu1609/TFAWSShareAmis
resource "aws_snapshot_create_volume_permission" "snaphot_permissions" {
for_each = {for object in data.aws_ebs_snapshot_ids.snapshot_ids.ids : object => object}
  snapshot_id   = each.key
  account_id = var.dest_account_id
github-iconniveklabs/aws
resource "aws_snapshot_create_volume_permission" "this" {
  account_id  = var.account_id
  snapshot_id = var.snapshot_id
}

github-iconC2Devel/terraform-examples
resource "aws_snapshot_create_volume_permission" "test_volume_permission" {
  snapshot_id = aws_ebs_snapshot.test_snapshot.id

  # NOTE: specify 'account_id' as 'project_name' and 'customer_name' pair
  account_id = var.account_id
}

CloudFormation Example

CloudFormation code does not have the related resource.

Frequently asked questions

What is AWS Amazon EC2 Permission?

AWS Amazon EC2 Permission is a resource for Amazon EC2 of Amazon Web Service. Settings can be wrote in Terraform.

Where can I find the example code for the AWS Amazon EC2 Permission?

For Terraform, the Murtu1609/TFAWSShareAmis, niveklabs/aws and C2Devel/terraform-examples source code examples are useful. See the Terraform Example section for further details.