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
Copy file name to clipboardExpand all lines: README.md
+19Lines changed: 19 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -980,6 +980,25 @@ stepFunctions:
980
980
981
981
You can specify tags on each state machine. Additionally any global tags (specified under `provider` section in your `serverless.yml`) would be merged in as well.
982
982
983
+
If you _don't_ want for global tags to be merged into your state machine, you can include the `inheritGlobalTags` property for your state machine.
984
+
985
+
```yaml
986
+
provider:
987
+
tags:
988
+
app: myApp
989
+
department: engineering
990
+
stepFunctions:
991
+
stateMachines:
992
+
hellostepfunc1:
993
+
name: myStateMachine
994
+
inheritGlobalTags: false
995
+
tags:
996
+
score: 42
997
+
definition: something
998
+
```
999
+
1000
+
As a result, `hellostepfunc1` will only have the tag of `score: 42`, and _not_ the tags at the provider level
0 commit comments