Skip to content

Modifications #39

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
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
Next Next commit
Update ec2.tf
  • Loading branch information
yj1910 authored Feb 9, 2024
commit e9f03d8df7da3196527871f7083a00c5cbb77df3
3 changes: 2 additions & 1 deletion beginners/aws/modules/ec2/ec2.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ data "aws_ami" "ubuntu" {

resource "aws_instance" "instance" {
ami = data.aws_ami.ubuntu.id
instance_type = "t2.micro"
instance_type = var.instance_type
key_name = var.key_pair_name

network_interface {
Expand All @@ -27,5 +27,6 @@ resource "aws_instance" "instance" {
tags = {
project = "Collabnix"
department = "Automation"
Name = "myinstance"
}
}