Skip to content

Commit

Permalink
corrected instance id and tested locally - all ok
Browse files Browse the repository at this point in the history
  • Loading branch information
proquickly committed Nov 6, 2024
1 parent 85ed972 commit e454283
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,14 @@ Before you can use this workflow, you need to set up these GitHub Secrets:
▪ AWS_ACCESS_KEY_ID
▪ AWS_SECRET_ACCESS_KEY
To use this example:

Get an instance id:
```aiignore
aws ec2 describe-images \
--owners amazon \
--filters "Name=name,Values=al2023-ami-*" "Name=architecture,Values=x86_64" \
--query "sort_by(Images, &CreationDate)[-1].ImageId" \
--output text
```
1. Create a new GitHub repository
1. Add the files as shown above
1. Add this to gha yml files:
Expand Down
2 changes: 1 addition & 1 deletion terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ provider "aws" {
}

resource "aws_instance" "example" {
ami = "ami-0c55b159cbfafe1f0" # Amazon Linux 2 AMI (change as needed)
ami = "ami-0709112b97e5accb1" # Amazon Linux 2 AMI (change as needed)
instance_type = "t2.micro"

tags = {
Expand Down

0 comments on commit e454283

Please sign in to comment.