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
+10-4Lines changed: 10 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,16 +55,22 @@ break the configuration where iam roles are being used
55
55
56
56
## st2_user_data
57
57
58
-
Optionally, you can set the user_data to set a default file to be used during new instance
59
-
creation. Put your user_data file somewhere accessible by the StackStorm user, and use
60
-
the st2_user_data config option to set it.
58
+
Optionally, you can add the [`user_data`](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/user-data.html) with set of provisioning instructions to be used during the new instance
59
+
creation.
61
60
62
61
```yaml
63
62
st2_user_data: "/full/path/to/file"
64
63
```
65
-
64
+
Put your user_data file somewhere accessible by the StackStorm user, and use the st2_user_data config option to set it.
66
65
This file/script will be used for all invocations of the ec2_run_instances action
67
66
67
+
Alternatively, user data can be specified inline:
68
+
```yaml
69
+
st2_user_data: |
70
+
#!/bin/bash
71
+
echo "I'm EC2 user data: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/user-data.html"
72
+
```
73
+
68
74
## Actions
69
75
70
76
Prior to installation of the aws pack, you can get the list of available actions here:
0 commit comments