Skip to content

Instantly share code, notes, and snippets.

View jazztong's full-sized avatar
💭
Thinking....

jazztong

💭
Thinking....
  • Malaysia
View GitHub Profile
# aws-preprod:
# - key: TFC_AWS_PROVIDER_AUTH
# value: true
# - key: TFC_AWS_RUN_ROLE_ARN
# value: arn:aws:iam::<<replace-aws-master-account-number>>:role/tfc-role
# - key: aws_provision_id
# category: terraform
# value: <<replace-aws-preprod-account-number>>
# - key: aws_provision_role
# category: terraform
# aws-preprod:
# - key: TFC_AWS_PROVIDER_AUTH
# value: true
# - key: TFC_AWS_RUN_ROLE_ARN
# value: arn:aws:iam::<<replace-aws-master-account-number>>:role/tfc-role
# - key: aws_provision_id
# category: terraform
# value: <<replace-aws-preprod-account-number>>
# - key: aws_provision_role
# category: terraform
@jazztong
jazztong / workspace-variables.yaml
Last active August 10, 2023 17:30
workspace-variables.yaml
# aws-master:
# - key: tfc_organization_name
# category: terraform
# value: <<replace-terraform-organization-name>>
curl --location --request GET '{YOUR_ALB_CNAME}/users'
curl --location --request POST '{YOUR_ALB_CNAME}/users' \
--header 'Content-Type: application/json' \
--data-raw '{
"email":"jackson@gmail.com",
"name":"Jackson"
}'
@jazztong
jazztong / list product
Created October 27, 2021 16:17
List product
curl --location --request GET '{YOUR_ALB_CNAME}/products'
@jazztong
jazztong / newproduct.shell
Created October 27, 2021 16:15
Add new product
curl --location --request POST '{YOUR_ALB_CNAME}/products' \
--header 'Content-Type: application/json' \
--data-raw '{
"sku":"88999232",
"name":"Book",
"price":"1212.02",
"vendor":"UES",
"description":"Some good book"
}'
variable "project_name" {
type = string
description = "Fill in your project name, it must match the project name that run this pipeline"
default = "Microservice-App"
}
variable "app_repo_input_url" {
type = string
description = "Fill in the input url to import as application repo"
default = "https://github.com/jazztong/microservice-theapp.git"
Parameters:
StateBucketName:
Description: Name of the S3 bucket to place the Terraform state files in.
Type: String
LockTableName:
Description: Name of the DynamoDB table to store state locks.
Type: String
AWSTemplateFormatVersion: 2010-09-09
Resources:
host i-* mi-*
ProxyCommand C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe "aws ssm start-session --target %h --document-name AWS-StartSSHSession --parameters portNumber=%p"