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.81k stars 9.16k forks source link

Option to attach multiple disk_containers or snaphots for Resource aws_ebs_snapshot_import #22095

Closed AkshayGEA closed 8 months ago

AkshayGEA commented 2 years ago

We need to build images with multiple virtual disks.

resource "aws_ebs_snapshot_import" "example" {
  disk_container = [{
    description = "Forwarder"
    format      = "vhd"
    user_bucket = {
      s3_bucket = "va-vhd-bucket"
      s3_key    = "forwarder-va.vhd"
    }
    },
    {
      description = "Dynamic"
      format      = "vhd"
      user_bucket = {
        s3_bucket = "va-vhd-bucket"
        s3_key    = "dynamic.vhd"
      }
  }]

  role_name = "disk-image-import"

  tags = {
    Name = "HelloWorld"
  }
}

The above sample reports a error as the disk_container can accept only one set of values.

Is there an option to add multiple vhd files to the snapshot creation.

AkshayGEA commented 2 years ago

Hi, All,

Is there any update on this issue. We need to use Terraform Cloud to deploy DNS Resolvers(Cisco Umbrella) in AWS but this issue in the resource is making us use the CLI to build the image and use Terraform Cloud to deploy the instances.

Is there an alternate in case that can be considered to build the images instead? Here is the reference to the process we are currently using to build the images. Deploy VAs in Amazon Web Services

github-actions[bot] commented 9 months ago

Marking this issue as stale due to inactivity. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed. Maintainers can also remove the stale label.

If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you!

github-actions[bot] commented 7 months ago

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.