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
Update action to support multiple parameter changes
The code now allows updating multiple CloudFormation stack parameters
at once instead of being limited to a single parameter change.
Parameters are specified in a Name=Value format, with each pair on
a separate line.
This is a breaking change, but since the code is barely two days old,
it's unlikely somebody depends on it already.
Copy file name to clipboardexpand all lines: README.md
+10-10
Original file line number
Diff line number
Diff line change
@@ -1,22 +1,22 @@
1
-
# Update CloudFormation Stack Parameter Action
1
+
# Update CloudFormation Stack Parameters Action
2
2
3
-
This GitHub Action updates a single parameter in an existing CloudFormation stack while preserving all other settings.
3
+
This GitHub Action updates existing CloudFormation stack by changing some of its parameters while preserving all other settings.
4
4
5
5
## Usage
6
6
7
7
```yaml
8
8
- uses: artyom/update-cloudformation-stack@main
9
9
with:
10
10
stack: my-stack-name
11
-
key: ParameterName
12
-
value: NewValue
11
+
parameters: |
12
+
Name1=value1
13
+
Name2=value2
13
14
```
14
15
15
16
## Inputs
16
17
17
-
- `stack` - Name of the CloudFormation stack to update
18
-
- `key`- Name of the stack parameter to update
19
-
- `value`- New value to set for the parameter
18
+
- `stack` - name of the CloudFormation stack to update
19
+
- `parameters`- pairs of parameters in the Name=Value format, each pair on a separate line
20
20
21
21
## AWS Credentials
22
22
@@ -51,8 +51,8 @@ jobs:
51
51
- uses: artyom/update-cloudformation-stack@main
52
52
with:
53
53
stack: production-stack
54
-
key: ImageTag
55
-
value: v123
54
+
parameters: |
55
+
ImageTag=v123
56
56
```
57
57
58
-
The action will monitor stack update progress and fail if update fails. If parameter already has the requested value, action will exit with a warning message.
58
+
The action will monitor stack update progress and fail if update fails.
0 commit comments