---
title: "Configuring Relay by Puppet"
chapter: true
weight: 25
---
# Configuring Relay by Puppet
1. Relay workflows can easily be imported from the [Library](https://relay.sh/library/) or any publically accesible web link
- Click on the below link to open the Relay workflow import wizard
- [Puppet Enterprise Unauthorized Sudo Configuration Change](https://app.relay.sh/create-workflow?workflowName=puppet-unauthorized-sudo-fencer&initialContentURL=https://raw.githubusercontent.com/ody/relay-workflows/puppet-ec2-corrective-only/puppet-shutdown-ec2/puppet-shutdown-ec2.yaml)
- Click on the **Create Workflow** button

2. When a new workflow is imported it will inform you of the need to define additional pieces of information
- Click on the **Fill in missing secrets** link

3. Add a new AWS connection by clicking on the "**+**" next to **my-aws-account**

4. A **Setup up you AWS connection** pane has opened, add here access and secrets keys for a user which has access to EC2 and click *Save*

5. Back at the **Workflow configuration** pain, scroll down to the **Secrets** section and click again on the "**+**" next to **awsRegion**

6. To keep the workshop simple, set this as the same region you deployed Puppet Enterprise to

7. Relay workflows can be triggered in several ways, one of is a [Push trigger](https://relay.sh/docs/using-workflows/using-triggers/#push-triggers)
- The [Receive Puppet report](https://relay.sh/triggers/-/puppet-report) is what makes today's workshop possible

8. Push triggers generate a workflow specific authentication token
- Save the token for later, we'll use it to configure Puppet Enterprise
