|
1 | 1 | <!-- BEGIN_TF_DOCS --> |
| 2 | +# terraform-aws-kong |
| 3 | + |
| 4 | +Terraform Module to setup Kong(OSS) in ECS with self managed EC2 instances. |
| 5 | + |
2 | 6 | # Architectural Diagram |
3 | 7 |
|
4 | 8 |  |
|
7 | 11 |
|
8 | 12 | This setup assumes that the `ECS cluster` that has `Auto Scaling Group (ASG)` exist with the name `default`. If you are using different name, you can provide those in the variables section of your Terraform configuration. |
9 | 13 |
|
10 | | -# Prerequisites for Setting Up AWS SSM Parameters |
11 | | - |
12 | | -To configure and manage your AWS resources and GitHub Actions using Secure String parameters in AWS Systems Manager Parameter Store, follow the steps below to add the required parameters: |
13 | | - |
14 | | -## AWS CLI Installation |
15 | | - |
16 | | -Ensure you have the AWS CLI installed on your machine. You can install the AWS CLI using the following commands based on your operating system: |
17 | | - |
18 | | -### Windows |
19 | | -```sh |
20 | | -msiexec.exe /i https://awscli.amazonaws.com/AWSCLIV2.msi |
21 | | -``` |
22 | | - |
23 | | -### macOS |
24 | | -```sh |
25 | | -brew install awscli |
26 | | -``` |
27 | | - |
28 | | -### Linux |
29 | | -```sh |
30 | | -curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" |
31 | | -unzip awscliv2.zip |
32 | | -sudo ./aws/install |
33 | | -``` |
34 | | - |
35 | | -## AWS CLI Configuration |
36 | | - |
37 | | -Configure the AWS CLI with your AWS credentials and region. Run the following command and follow the prompts to enter your AWS Access Key, Secret Access Key, and default region: |
38 | | - |
39 | | -```sh |
40 | | -aws configure |
41 | | -``` |
42 | | - |
43 | 14 | ## Adding Parameters to AWS Systems Manager Parameter Store |
44 | 15 |
|
45 | | -Use the following commands to add the required parameters to AWS Systems Manager Parameter Store. These parameters are necessary for configuring your PostgreSQL database and GitHub Actions. |
| 16 | +Ensure you have the AWS CLI installed on your machine. You can find the installation instructions for different operating systems in the official AWS CLI documentation: |
| 17 | +[Install AWS CLI](https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html) |
46 | 18 |
|
47 | | -### RDS Parameters |
| 19 | +Use the following commands to add the required parameters to AWS Systems Manager Parameter Store. These parameters are necessary for configuring your PostgreSQL database. |
48 | 20 |
|
49 | 21 | ```sh |
50 | 22 | aws ssm put-parameter --name "/rds/POSTGRES_USERNAME" --value "value" --type "SecureString" |
51 | 23 | aws ssm put-parameter --name "/rds/POSTGRES_PASSWORD" --value "value" --type "SecureString" |
52 | 24 | aws ssm put-parameter --name "/rds/POSTGRES_DB_NAME" --value "value" --type "SecureString" |
53 | 25 | ``` |
54 | 26 |
|
55 | | -## Verifying Parameter Storage |
56 | | - |
57 | | -After adding the parameters, you can verify their storage in AWS Systems Manager Parameter Store using the following command: |
58 | | - |
59 | | -```sh |
60 | | -aws ssm get-parameters --names "/rds/POSTGRES_USERNAME" "/rds/POSTGRES_PASSWORD" "/rds/POSTGRES_DB_NAME" --with-decryption |
61 | | -``` |
62 | | - |
63 | | -This command will display the values of the stored parameters, ensuring they have been added correctly. |
64 | | - |
65 | 27 | ## Requirements |
66 | 28 |
|
67 | 29 | | Name | Version | |
|
0 commit comments