Create role with SSM permissions
Last updated
Last updated
Taskforce.sh uses the AWS Systems Manager in order to store the configuration variables of your instance securely and persistently.
Your instance will therefore need some permissions to read and write on the Parameter Store. Follow this instructions to create a role with minimal permissions that we will attach to the instance.
a) Go to the IAM panel and click on "Create role".
b) Choose AWS Service as the trusted entity and EC2 as Use Case.
c) Create a new policy:
d) Choose System Manager as a service:
e) For security we will only enable the absolute minimum permissions in the Actions section.
So for the "Read" section we will only mark "GetParametersByPath":
And for the Write section we will mark "PutParameter":
f) Restrict access to the Taskforcesh path.
Click on "Add Arn" link:
And restrict to only paths under "Taskforcesh" and optionally on all regions:
Click on "Add" and finalize by clicking on "Next: Tags" and then "Next: Review".
g) Review policy and click on "Create policy":
h) Go back to the "Create role" tab (that should still be open) and find the new policy so that we can attach it to the role. Do not forget to "refresh" the table so that the new policy appears:
Continue by clicking on "Next: Tags", then "Next: Review"
i) Review and "Create role"