Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using market place AMI from another region for aws_instance #12142

Open
sydneywu opened this issue Feb 24, 2020 · 1 comment
Open

Using market place AMI from another region for aws_instance #12142

sydneywu opened this issue Feb 24, 2020 · 1 comment
Labels
question A question about existing functionality; most questions are re-routed to discuss.hashicorp.com. service/ec2 Issues and PRs that pertain to the ec2 service.

Comments

@sydneywu
Copy link

sydneywu commented Feb 24, 2020

Community Note

  • Please vote on this issue by adding a 馃憤 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

I need to create a EC2 instance usinga AMI from the AWS maketplace. The AMI is ami-004116ba09b8e3e81( VM-Series Next-Generation Firewall Bundle 1) from Alto Pato. Apparently this ami is from us-east-1 and my VPC is in ap-southeast-1. I am able to do this using the AWS console because it indicate ([Copied ami-004116ba09b8e3e81 from us-east-1] PA-VM-AWS-9.1.0-h3). However if i use terraform, it will throw the following error: The image id '[ami-004116ba09b8e3e81]' does not exist.

New or Affected Resource(s)

  • aws_instance
@sydneywu sydneywu added the enhancement Requests to existing resources that expand the functionality or scope. label Feb 24, 2020
@ghost ghost added the service/ec2 Issues and PRs that pertain to the ec2 service. label Feb 24, 2020
@github-actions github-actions bot added the needs-triage Waiting for first response or review from a maintainer. label Feb 24, 2020
@breathingdust breathingdust added question A question about existing functionality; most questions are re-routed to discuss.hashicorp.com. and removed enhancement Requests to existing resources that expand the functionality or scope. needs-triage Waiting for first response or review from a maintainer. labels Sep 22, 2021
@ljluestc
Copy link

ljluestc commented Sep 7, 2023

To address this issue, you need to ensure that you are using the correct AMI ID for the VM-Series Next-Generation Firewall Bundle 1 from Alto Pato in the us-east-1 region, even though your VPC is in the ap-southeast-1 region.

provider "aws" {
  region = "ap-southeast-1"
}

resource "aws_instance" "example" {
  ami           = "ami-004116ba09b8e3e81"
  instance_type = "t2.micro"
  subnet_id     = "your-subnet-id"  # Replace with your subnet ID in ap-southeast-1
  key_name      = "your-key-name"   # Replace with your key pair name
}

# Define any other required resources or configurations as needed.

Make sure to replace "your-subnet-id" with the appropriate subnet ID from your ap-southeast-1 region, and "your-key-name" with the name of your key pair.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question A question about existing functionality; most questions are re-routed to discuss.hashicorp.com. service/ec2 Issues and PRs that pertain to the ec2 service.
Projects
None yet
Development

No branches or pull requests

3 participants