본문 바로가기

TF6

[Terraform/AWS] cross account TGW-DX Attach 이번에 팔자에도 없던 DX를 좀 보게 되었다.Transit Gateway에 DX GW를 Attach해야 했는데, 다중 프로바이더 환경에서 테라폼으로 작업할 때 좀 해멨어서 이렇게 남긴다. 먼저, 동일 프로바이더 환경에서 TGW, DX GW를 만들고 Attach시키는건 다음과 같다. # TGW 생성resource "aws_ec2_transit_gateway" "this" { description = "honglab-tgw"}# DX GW 생성resource "aws_dx_gateway" "this" { name = "honglab-dx" amazon_side_asn = "64512"}# DX GW - TGW Association 생성# -> TGW Attach 리소스가 자동으로 생.. 2025. 2. 5.
[OpenTofu] 프로바이더 반복하기 난 테라폼을 정말 사랑하지만... 프로바이더 반복이 안되는 점에 대해 매우 답답해 했었다.물론 프로바이더 반복으로 인해 다양한 골치아픈 일이 발생할수도 있단 점은 인지하지만 (eks모듈 안에서 쿠버/헬름 프로바이더 쓸때만 해도 머리아파 죽음)그래도... 반복이 가능했으면 더 좋았을텐데, 하고 있었는데 https://github.com/opentofu/opentofu/releases/tag/v1.9.0-beta1 Release v1.9.0-beta1 · opentofu/opentofu⚠️ Do not use this release for production workloads! ⚠️ It's time for the beta release of the 1.9.0 version! This includes a l.. 2024. 12. 19.
digitickets/terraform-aws-cli 모듈 기여 https://github.com/digitickets/terraform-aws-cli/releases/tag/v7.0.0 Release v7.0.0: Merge branch 'issue_19_json_decoding' · digitickets/terraform-aws-cliv7.0.0 - 2024/08/06 Fix a typo in the description for the var.external_id. Fix handling of invalid JSON returned from the AWS CLI. Thank you 홍수민 and horststumpf. Introduced 2 new outputs: ou...github.com   내가 올린 PR : https://github.com/digitick.. 2024. 8. 7.
[Terraform Associate (003)] 2024-02-17 합격 후기 https://www.credly.com/badges/797fde64-28d6-4dd8-b59d-2ff7a1ab2309/public_url HashiCorp Certified: Terraform Associate (003) was issued by HashiCorp to Sumin Hong.Earners of the HashiCorp Certified: Terraform Associate certification know the basic concepts, skills, and use cases associated with open source HashiCorp Terraform. They understand and can utilize Terraform according to the certificat.. 2024. 2. 18.
[Terraform/k8s] k8s YAML 리소스로 Terraform Code를 쉽게 작성하는 3가지 방법 Terraform으로 kubernetes를 관리하는 경우, yaml 리소스를 한땀한땀 HCL Code로 변경하는건 매우 귀찮다 (너무 당연하게도) 노가다를 자동으로 돌려주는 오픈소스가 이미 있었다 1. k2tf (Open Source) 공식 k8s provider에서 제공하는 API를 사용하는 경우, k2tf를 사용해 간편하게 변환할 수 있다 https://github.com/sl1pm4t/k2tf GitHub - sl1pm4t/k2tf: Kubernetes YAML to Terraform HCL converter Kubernetes YAML to Terraform HCL converter. Contribute to sl1pm4t/k2tf development by creating an account o.. 2022. 8. 21.
[Terraform on AWS] 테라폼 채움 참조, 변수(variable), output 사용 참조 : 책 Terraform Up & Running 코드 깃헙 주소 : github.com/stitchlabio/terraform-up-and-running-code 테라폼 기본 설정은 지난 글을 참조하자 Requirements AmazonEC2FullAccess 권한이 있는 IAM User 기본 VPC (버지니아 북부 : us-east-1) 생성할 리소스 특정 포트를 열어놓는 보안 그룹 EC2 해당 포트로 접속하면 Hello, World를 보여주는 User Data 위에서 설명한 보안 그룹 연결 목차 1. 채움 참조(interpolation)를 사용해 리소스 생성 2. 변수를 사용해 리소스 생성 3. 더 다양한 variable 1. 채움 참조를 사용해 리소스 생성 provider "aws" { reg.. 2021. 3. 19.