# Create role with SSM permissions

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".

![](/files/-MgLXL5jTdM2hgcnhL5Q)

b) Choose AWS Service as the trusted entity and EC2 as Use Case.

![](/files/-MgLXmheG3APAJ5OtEdT)

c) Create a new policy:

![](/files/-MgLXyi_57GZTOkrkZB_)

d) Choose System Manager as a service:

![](/files/-MgLYDezSvRP8evCFp07)

e) For security we will only enable the absolute minimum permissions in the Actions section.

&#x20;So for the "Read" section we will only mark "GetParametersByPath":

![](/files/-MgLZi76i9LN530BmltW)

And for the Write section we will mark "PutParameter":

![](/files/-MgLZw0ddmG5vpPlOuj-)

f) Restrict access to the Taskforcesh path.

Click on "Add Arn" link:

![](/files/-MgL_mUe9LU1GY8ocvxn)

And restrict to only paths under "Taskforcesh" and optionally on all regions:

![](/files/-MgLa2qoC5Pc9T01mXLc)

Click on "Add" and finalize by clicking on "Next: Tags" and then "Next: Review".

g) Review policy and click on "Create policy":

![](/files/-MgLbChPXSwKqJ991a4r)

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:

![](/files/-MgLdQ5hh1cOC8CqH_nW)

Continue by clicking on "Next: Tags", then "Next: Review"

i) Review and "Create role"

![](/files/-MgLdoSbpKKZTVCtIg4_)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.taskforce.sh/on-premises/aws/create-role-with-ssm-permissions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
