|
| 1 | +PROFILE=your-aws-profile |
| 2 | +ACCOUNTID=your-aws-account-id |
| 3 | +REGION=your-aws-region |
| 4 | +BUCKET=your-configuration-bucket |
| 5 | + |
| 6 | +P_VPC_ID=your-vpc-id |
| 7 | +P_HOSTEDZONE_DOMAIN=internal.heeki.cloud |
| 8 | +P_DOMAINNAME=api.internal.heeki.cloud |
| 9 | +INFRASTRUCTURE_STACK=lambda-core-infrastructure |
| 10 | +INFRASTRUCTURE_TEMPLATE=iac/infrastructure.yaml |
| 11 | +INFRASTRUCTURE_OUTPUT=iac/infrastructure_output.yaml |
| 12 | +INFRASTRUCTURE_PARAMS="ParameterKey=pVpcId,ParameterValue=${P_VPC_ID} ParameterKey=pHostedZoneDomain,ParameterValue=${P_HOSTEDZONE_DOMAIN} ParameterKey=pDomainName,ParameterValue=${P_DOMAINNAME} ParameterKey=pIngressCidr,ParameterValue=${P_INGRESS_CIDR} ParameterKey=pSubnetIds,ParameterValue=${P_SUBNETIDS_PRIVATE}" |
| 13 | +O_HOSTEDZONE_ID=output-hostedzone-id |
| 14 | +O_CERT_ARN=O_CERT_ARN=output-certificate-arn |
| 15 | + |
| 16 | +P_USERPOOL_DOMAIN=lattice-api-authentication |
| 17 | +P_USER_NAME=your-user-name |
| 18 | +P_USER_EMAIL=your-user-email |
| 19 | +COGNITO_STACK=lambda-api-cognito |
| 20 | +COGNITO_TEMPLATE=iac/cognito.yaml |
| 21 | +COGNITO_OUTPUT=iac/cognito_output.yaml |
| 22 | +COGNITO_PARAMS="ParameterKey=pUserPoolDomain,ParameterValue=${P_USERPOOL_DOMAIN} ParameterKey=pUserName,ParameterValue=${P_USER_NAME} ParameterKey=pUserEmail,ParameterValue=${P_USER_EMAIL}" |
| 23 | +O_USERPOOL_ID=output-userpool-id |
| 24 | +O_USERPOOL_PROVIDERNAME=output-userpool-providername |
| 25 | +O_USERPOOL_PROVIDERURL=output-userpool-providerurl |
| 26 | +O_USERPOOL_CLIENTID=output-userpool-clientid |
| 27 | +O_USERPOOL_DOMAIN=output-userpool-domain |
| 28 | +O_IDENTITYPOOL_ID=output-identitypool-id |
| 29 | +P_USERPOOL_CLIENTID=$(shell echo ${O_USERPOOL_CLIENTID} | openssl base64) |
| 30 | + |
| 31 | +P_COGNITO_USERTEMPPW=your-temporary-password-that-was-emailed-to-you |
| 32 | +P_COGNITO_USERPERMPW=your-new-secure-permanent-password |
| 33 | +O_COGNITO_SESSION=$(shell cat tmp/cognito_admin_1.json | jq -r ".Session") |
| 34 | +O_COGNITO_ID_TOKEN=$(shell cat tmp/cognito_user.json | jq -r ".AuthenticationResult.IdToken") |
| 35 | +O_COGNITO_ACCESS_TOKEN=$(shell cat tmp/cognito_user.json | jq -r ".AuthenticationResult.AccessToken") |
| 36 | + |
| 37 | +P_STAGE=dev |
| 38 | +P_FN_MEMORY=128 |
| 39 | +P_FN_TIMEOUT=60 |
| 40 | +P_SERVICE_ENDPOINT=your-vpc-lattice-service-endpoint-fqdn |
| 41 | +P_SERVICE_ARNS=your-vpc-lattice-service-arn/* |
| 42 | +P_SUBNETIDS_PRIVATE=your-comma-separated-private-subnetids |
| 43 | +LAMBDA_STACK=lambda-api-client |
| 44 | +LAMBDA_TEMPLATE=iac/lambda.yaml |
| 45 | +LAMBDA_OUTPUT=iac/lambda_output.yaml |
| 46 | +LAMBDA_PARAMS="ParameterKey=pApiStage,ParameterValue=${P_STAGE} ParameterKey=pUserPoolId,ParameterValue=${O_USERPOOL_ID} ParameterKey=pFnMemory,ParameterValue=${P_FN_MEMORY} ParameterKey=pFnTimeout,ParameterValue=${P_FN_TIMEOUT} ParameterKey=pServiceEndpoint,ParameterValue=${P_SERVICE_ENDPOINT} ParameterKey=pServiceArns,ParameterValue=${P_SERVICE_ARNS} ParameterKey=pVpcId,ParameterValue=${P_VPC_ID} ParameterKey=pSubnetIds,ParameterValue=${P_SUBNETIDS_PRIVATE}" |
| 47 | +O_API_ENDPOINT=output-api-endpoint |
| 48 | +O_FN=output-fn-id |
| 49 | +O_LAYER_ARN=output-layer-version-arn |
| 50 | +O_SGROUP=output-sgroup-id |
| 51 | + |
| 52 | +P_SUBNETIDS_PUBLIC=your-comma-separated-public-subnetids |
| 53 | +P_BASTION_INGRESS_CIDR=your-ingress-cidr |
| 54 | +P_IMAGE_ID=ami-04cb4ca688797756f |
| 55 | +P_INSTANCE_TYPE=t2.micro |
| 56 | +P_SSH_KEY=your-ec2-ssh-keypair-name |
| 57 | +EC2_STACK=lambda-api-bastion |
| 58 | +EC2_TEMPLATE=iac/bastion.yaml |
| 59 | +EC2_OUTPUT=iac/bastion_output.yaml |
| 60 | +EC2_PARAMS="ParameterKey=pVpcId,ParameterValue=${P_VPC_ID} ParameterKey=pSubnetIds,ParameterValue=${P_SUBNETIDS_PUBLIC} ParameterKey=pIngressCidr,ParameterValue=${P_BASTION_INGRESS_CIDR} ParameterKey=pClientSGroup,ParameterValue=${O_SGROUP_CLIENT} ParameterKey=pImageId,ParameterValue=${P_IMAGE_ID} ParameterKey=pInstanceType,ParameterValue=${P_INSTANCE_TYPE} ParameterKey=pKey,ParameterValue=${P_SSH_KEY}" |
| 61 | +O_PUBLIC_DNS=output-ec2-public-dns-fqdn |
| 62 | +O_PUBLIC_IP=output-ec2-public-ip |
| 63 | + |
| 64 | +P_R53_HOSTEDZONE_ID=your-hostedzone-id |
| 65 | +P_R53_CNAME=eks.internal.heeki.cloud |
| 66 | +P_R53_LATTICE_ENDPOINT=your-lattice-service-endpoint-fqdn |
| 67 | +R53_STACK=lambda-core-alias-eks |
| 68 | +R53_TEMPLATE=iac/route53.yaml |
| 69 | +R53_OUTPUT=iac/route53_output.yaml |
| 70 | +R53_PARAMS="ParameterKey=pHostedZoneId,ParameterValue=${P_R53_HOSTEDZONE_ID} ParameterKey=pDomainName,ParameterValue=${P_R53_CNAME} ParameterKey=pEndpoint,ParameterValue=${P_R53_LATTICE_ENDPOINT}" |
0 commit comments