Skip to content

Commit

Permalink
README update, IAM update for AWS Marketplace
Browse files Browse the repository at this point in the history
  • Loading branch information
wardviaene committed Jun 5, 2024
1 parent f9729a8 commit 74483e6
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
14 changes: 13 additions & 1 deletion README-install.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,16 @@ To change the configuration, upload a configuration yaml file to the s3 bucket (
aws s3 cp resources/example-proxy/mocky.yaml s3://roxprox-examplecom/config/mocky.yaml
```

To test the installation, hit the newly created loadbalancer endpoint with curl or a browser.
To test the installation, hit the newly created loadbalancer endpoint with curl or a browser. If you used the example, you can use curl:
```
curl http://example.com -v -H "Host: test.example.com"
```

## Notes

* No sensitive information is stored.
* The configuration in your S3 bucket
* The envoy config file is in the parameter store
* TLS on the loadbalancer is enabled, encryption at rest of the configuration and s3 bucket can be configured
* No cryptographic keys need to be rotated, you can use KMS as the key store
* To verify container health, go to the ECS console and check whether the roxprox and envoy tasks are running. Use the logs in Cloudwatch Logs to see if no errors are present
7 changes: 7 additions & 0 deletions terraform/iam.tf
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,13 @@ resource "aws_iam_role_policy" "roxprox-task-role" {
"sqs:DeleteMessage"
],
"Resource": "${aws_sqs_queue.roxprox-notifications.arn}"
},
{
"Effect": "Allow",
"Action": [
"aws-marketplace:RegisterUsage"
],
"Resource": "*"
}
]
}
Expand Down
6 changes: 6 additions & 0 deletions terraform/templates/roxprox.json.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,12 @@
"hostPort": 8080,
"protocol": "tcp"
}
],
"environment" : [
{
"name" : "PROD_CODE",
"value" : "dcd3uon2t2eff1rt7wmptmeoo"
}
]
}
]

0 comments on commit 74483e6

Please sign in to comment.