File tree Expand file tree Collapse file tree 3 files changed +32
-1
lines changed Expand file tree Collapse file tree 3 files changed +32
-1
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,9 @@ aws_autoscaling_list() {
1818 LTID:MixedInstancesPolicy.LaunchTemplate.LaunchTemplateSpecification.LaunchTemplateId,\
1919 LTVersion:MixedInstancesPolicy.LaunchTemplate.LaunchTemplateSpecification.Version,\
2020 LTName:MixedInstancesPolicy.LaunchTemplate.LaunchTemplateSpecification.LaunchTemplateName,\
21- DesiredCapacity:DesiredCapacity}" \
21+ MinSize:MinSize,\
22+ DesiredCapacity:DesiredCapacity,\
23+ MaxSize:MaxSize}" \
2224 --output table
2325 '
2426}
Original file line number Diff line number Diff line change @@ -92,3 +92,24 @@ function aws_ecr_pull_image_with_hint() { # To get the docker image and pull it
9292 ${aws_ecr_repo_image_tag:? ' aws_ecr_repo_image_tag is uset or empty' }
9393
9494}
95+
96+
97+ # ECR for helmchart
98+ function aws_ecr_login_for_helm() {
99+ if [[ -z " ${AWS_ACCOUNT_ID} " ]]; then
100+ aws_assume_role_get_aws_account_id
101+ fi
102+
103+ local aws_ecr_helm_docker_login_password
104+ local aws_ecr_helm_docker_login_cmd
105+
106+ aws_ecr_helm_docker_login_password=$( aws ecr get-login-password --region ${AWS_REGION} )
107+
108+ aws_ecr_helm_docker_login_cmd=$(
109+ echo " echo '${aws_ecr_helm_docker_login_password} ' | helm registry login \
110+ --username AWS --password-stdin ${AWS_ACCOUNT_ID} .dkr.ecr.${AWS_REGION} .amazonaws.com"
111+ )
112+
113+ aws_run_commandline " ${aws_ecr_helm_docker_login_cmd} "
114+
115+ }
Original file line number Diff line number Diff line change @@ -158,3 +158,11 @@ function aws_s3_cp_folder_instruction() {
158158 "
159159
160160}
161+
162+
163+ # Didn't work with PUT method
164+ # function aws_s3_get_presigned_url_for_uploader() {
165+ # aws_run_commandline "\
166+ # aws s3 presign $1 --http-method PUT --expires-in ${2:-3600}
167+ # "
168+ # }
You can’t perform that action at this time.
0 commit comments