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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README for looking up AMIs #52

Merged
merged 1 commit into from
Dec 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions aws.pkr.hcl
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
packer {
required_plugins {
amazon = {
source = "github.com/hashicorp/amazon"
version = "~> 1"
}

amazon-ami-management = {
version = "2.0.0"
source = "github.com/spacelift-io/amazon-ami-management"
Expand Down
4 changes: 3 additions & 1 deletion aws/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@ Use the `awscli` to get the latest AMI
```shell
aws ec2 describe-images \
--owners 643313122712 \
--filters "Name=name,Values=spacelift-*" \
--filters "Name=name,Values=spacelift-*" "Name=architecture,Values=x86_64" \
--query 'sort_by(Images, &CreationDate)[-1]'
```

Architecture could be either `x86_64` or `arm64`.

#### Terraform

Use a terraform data source to retrieve the latest AMI
Expand Down
9 changes: 9 additions & 0 deletions azure.pkr.hcl
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
packer {
required_plugins {
azure = {
source = "github.com/hashicorp/azure"
version = "~> 2"
}
}
}

variable "client_id" {
type = string
default = ""
Expand Down
9 changes: 9 additions & 0 deletions gcp.pkr.hcl
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
packer {
required_plugins {
googlecompute = {
source = "github.com/hashicorp/googlecompute"
version = "~> 1"
}
}
}

variable "account_file" {
type = string
default = null
Expand Down