Skip to content

Commit

Permalink
install: Add new instance-types option for AWS
Browse files Browse the repository at this point in the history
Fixes: confidential-containers#321

Signed-off-by: Pradipta Banerjee <[email protected]>
  • Loading branch information
bpradipt committed Jun 23, 2023
1 parent 80fe269 commit c13ffeb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ test_vars AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY
[[ "${AWS_SG_IDS}" ]] && optionals+="-securitygroupids ${AWS_SG_IDS} " # MUST if template is not used
[[ "${PODVM_AMI_ID}" ]] && optionals+="-imageid ${PODVM_AMI_ID} " # MUST if template is not used
[[ "${PODVM_INSTANCE_TYPE}" ]] && optionals+="-instance-type ${PODVM_INSTANCE_TYPE} " # default t3.small
[[ "${PODVM_INSTANCE_TYPES}" ]] && optionals+="-instance-types ${PODVM_INSTANCE_TYPES} "
[[ "${SSH_KP_NAME}" ]] && optionals+="-keyname ${SSH_KP_NAME} " # if not retrieved from IMDS
[[ "${AWS_SUBNET_ID}" ]] && optionals+="-subnetid ${AWS_SUBNET_ID} " # if not set retrieved from IMDS
[[ "${AWS_REGION}" ]] && optionals+="-aws-region ${AWS_REGION} " # if not set retrieved from IMDS
Expand Down
1 change: 1 addition & 0 deletions install/overlays/aws/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ configMapGenerator:
# Comment out all the following variables if using launch template
- PODVM_AMI_ID="" #set
#- PODVM_INSTANCE_TYPE="t3.small" # caa defaults to t3.small
#- PODVM_INSTANCE_TYPES="" # comma separated
#- AWS_SG_IDS="" # comma separated, if not set all SGs will be retrieved from IMDS
#- AWS_REGION="" # if not set retrieved from IMDS
#- SSH_KP_NAME="" # if not set retrieved from IMDS
Expand Down

0 comments on commit c13ffeb

Please sign in to comment.