Skip to content

Conversation

@tk3fftk
Copy link
Owner

@tk3fftk tk3fftk commented Dec 27, 2023

$ go run main.go build
log_level = "warn"
type = {
  a = 1
  b = 2
  c = 3
}







CI      = true
threads = 1

resource "aws_instance" "be" {
  ami           = data.aws_ami.ubuntu.id
  instance_type = "t3.medium"

  tags = {
    Name = "HelloWorld_Backend"
  }
  availability_zone = "ap-northeast-1a"
}
locals {
  d = 100
  c = 4
  a = 1
  b = 2
}

terraform {
  required_providers {
    aws = {
      source  = "hashicorp/aws"
      version = "~> 5.0"
    }
  }

  required_providers {
    aws = {
      version = "~> 6.0"
    }
  }
}

# Configure the AWS Provider
provider "aws" {
  region = "ap-northeast-1"
}

module "servers" {
  source = "./app-cluster"

  servers = 1
}

data "aws_ami" "ubuntu" {
  most_recent = false

  filter {
    name   = "name"
    values = ["ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-*"]
  }

  filter {
    name   = "virtualization-type"
    values = ["hvm"]
  }

  owners = ["099720109477"] # Canonical

  filter {
    name   = "arch"
    values = ["arm64"]
  }
}

resource "aws_instance" "web" {
  ami           = data.aws_ami.ubuntu.id
  instance_type = "t3.medium"

  tags = {
    Name = "HelloWorld"
  }
  availability_zone = "ap-northeast-1a"
}

@tk3fftk tk3fftk merged commit 531d959 into main Dec 27, 2023
@tk3fftk tk3fftk deleted the improve-coverage-for-tf branch December 27, 2023 07:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants