You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
echo"Published version $latest_version for layer $layer_name in region $region"
128
+
129
+
# This shouldn't happen unless someone manually deleted the latest version, say 28, and
130
+
# then tries to republish 28 again. The published version would actually be 29, because
131
+
# Lambda layers are immutable and AWS will skip deleted version and use the next number.
132
+
if [ $latest_version-gt$VERSION ];then
133
+
echo"ERROR: Published version $latest_version is greater than the desired version $VERSION!"
134
+
echo"Exiting"
135
+
exit 1
136
+
fi
137
+
done
138
+
}
139
+
105
140
forregionin$REGIONS
106
141
do
107
142
echo"Starting publishing layer for region $region..."
@@ -112,31 +147,20 @@ do
112
147
echo"Layer $layer_name version $VERSION already exists in region $region, skipping..."
113
148
continue
114
149
elif [ $latest_version-lt$((VERSION-1)) ];then
115
-
read -p "WARNING: The latest version of layer $layer_name in region $region is $latest_version, publish all the missing versions including $VERSION or EXIT the script (y/n)?" CONT
116
-
if [ "$CONT"!="y" ];then
117
-
echo"Exiting"
118
-
exit 1
119
-
fi
150
+
echo"WARNING: The latest version of layer $layer_name in region $region is $latest_version, this will publish all the missing versions including $VERSION"
0 commit comments