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"
123
+
124
+
# This shouldn't happen unless someone manually deleted the latest version, say 28, and
125
+
# then tries to republish 28 again. The published version would actually be 29, because
126
+
# Lambda layers are immutable and AWS will skip deleted version and use the next number.
127
+
if [ $latest_version-gt$VERSION ];then
128
+
echo"ERROR: Published version $latest_version is greater than the desired version $VERSION!"
129
+
echo"Exiting"
130
+
exit 1
131
+
fi
132
+
done
133
+
}
134
+
102
135
forregionin$REGIONS
103
136
do
104
137
echo"Starting publishing layer for region $region..."
@@ -109,31 +142,19 @@ do
109
142
echo"Layer $layer_name version $VERSION already exists in region $region, skipping..."
110
143
continue
111
144
elif [ $latest_version-lt$((VERSION-1)) ];then
112
-
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
113
-
if [ "$CONT"!="y" ];then
114
-
echo"Exiting"
115
-
exit 1
116
-
fi
145
+
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