Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Module refactor #14

Merged
merged 33 commits into from
Mar 14, 2024
Merged

Module refactor #14

merged 33 commits into from
Mar 14, 2024

Conversation

hellais
Copy link
Member

@hellais hellais commented Mar 9, 2024

This PR is to refactor the various resource groups into modules to make it easier to develop the test environment.

See: #6

We need to make use of the moved {} syntax to ensure we can apply
without recreating all the resource

These moved blocks can then be removed once the changes have been
applied.
Copy link

github-actions bot commented Mar 9, 2024

Terraform Run Output 🤖

Format and Style 🖌success

Initialization ⚙️success

Validation 🤖success

Validation Output

$ terraform validate
Success! The configuration is valid.

Plan 📖success

  • undefined
Show Plan

$ terraform plan
Acquiring state lock. This may take a few moments...
Pusher @hellais
Action pull_request
Environment dev
Workflow .github/workflows/check_terraform.yml
Last updated Thu, 14 Mar 2024 07:43:23 GMT

Copy link

github-actions bot commented Mar 9, 2024

Ansible Run Output 🤖

Ansible Playbook Recap 🔍



Ansible playbook output 📖success

Show Execution

$ ansible-playbook playbook.yml --check --diff -i ../tf/modules/ansible_inventory/inventories/inventory-dev.ini
[WARNING]: provided hosts list is empty, only localhost is available. Note that
the implicit localhost does not match 'all'
[WARNING]: Could not match supplied host pattern, ignoring: clickhouse_servers

PLAY [ClickHouse servers] ******************************************************
skipping: no hosts matched

PLAY RECAP *********************************************************************

Pusher @hellais
Action pull_request
Working Directory
Workflow .github/workflows/check_ansible.yml
Last updated Thu, 14 Mar 2024 07:43:59 GMT

hellais and others added 6 commits March 12, 2024 21:32
This adds a new IAM user: ooni_dev_user which shall be used as the
github user to run terraform apply. This IAM user has been given minimal
ReadOnly permissions to resources which allow it to successfully run
`terraform plan`

Closes: #16

---------

Co-authored-by: Arturo Filastò <arturo@filasto.net>
"ecr:*",
"ecr-public:*",
"rds:*",
"vpc:*",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"vpc:*",
"vpc-lattice:*",

I don't think vpc is a valid service name for AWS. There is also a warning on the console for the same. I think we should be using vpc-lattice instead.

@hellais hellais merged commit 090bdce into api-gateway Mar 14, 2024
2 checks passed
@hellais hellais deleted the module-refactor branch March 14, 2024 07:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants