Upgrade to Pro — share decks privately, control downloads, hide ads and more …

My small contributions - Fujiwara Tech Conferen...

My small contributions - Fujiwara Tech Conference 2025

Fujiwara Tech Conference 2025
Jan 17, 2025

Michael H. Oshita

January 17, 2025
Tweet

More Decks by Michael H. Oshita

Other Decks in Technology

Transcript

  1. Michael H. Oshita (@ijin) • Michael H. Oshita • Japanese

    American • ~20 Years in Japan • Cloud Architect • JAWS-UG Yokohama & Serverless Community • https://ijin.github.io/
  2. App deployment 1. terragrunt run-all apply 2. ecspresso deploy --env

    fi le=../global.env -- env fi le=vars/common.env —env fi le=vars/$ {ENV}.env --con fi g=$FILE
  3. Jsonnet { cpu: {{ must_env `cpu` }} memory: std.parseInt(‘{{ must_env

    `memory` }}’) } ❌ Templates only worked for strings…
  4. lambroll deploy…. lambroll deploy --function function.jsonnet --src="app" \ —env fi

    le=../global.env \ —env fi le=vars/common.env \ —env fi le=vars/${ENV}.env \ —pre fi xed-tfstate=“vpc_=s3://pd-${ENV}-tfstate/${ENV}/vpc/tf.tfstate” \ —pre fi xed-tfstate=“logs_=s3://pd-${ENV}-tfstate/${APP}/logs/tf.tfstate" \ —pre fi xed-tfstate=“ecr_=s3://pd-${ENV}-tfstate/${APP}/ecr/tf.tfstate” \ —pre fi xed-tfstate=“app_resources_=s3://pd-${ENV}-tfstate/${ENV}/ app_resources/terraform.tfstate"
  5. lambroll deploy…. lambroll deploy --function function.jsonnet --src="app" \ —env fi

    le=../global.env \ —env fi le=vars/common.env \ —env fi le=vars/${ENV}.env \ —pre fi xed-tfstate=“vpc_=s3://pd-${ENV}-tfstate/${ENV}/vpc/tf.tfstate” \ —pre fi xed-tfstate=“logs_=s3://pd-${ENV}-tfstate/${APP}/logs/tf.tfstate" \ —pre fi xed-tfstate=“ecr_=s3://pd-${ENV}-tfstate/${APP}/ecr/tf.tfstate” \ —pre fi xed-tfstate=“app_resources_=s3://pd-${ENV}-tfstate/${ENV}/ app_resources/terraform.tfstate" 😳 No equivalent of ecspresso.yml