Skip to content

Commit 22dfa8e

Browse files
Add - include MinSize and MaxSize in aws_autoscaling_list output
1 parent cfc8d95 commit 22dfa8e

File tree

3 files changed

+32
-1
lines changed

3 files changed

+32
-1
lines changed

services/ec2/ec2_autoscaling.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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
}

services/ecr.sh

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
}

services/s3.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
# }

0 commit comments

Comments
 (0)