1
0
mirror of synced 2026-01-08 03:06:34 -05:00

Setup terraform structure for connector dev infra for GCP and AWS (#4641)

* setup GCP terraform structure for connector dev infra

* fxes

* Created aws terraform bootstrap infrastructure

* Corrected path for S3 state file

* Creating ssh tunnel testing infrastructure

* Creating a bastion host

* Docs

* Created bastion host with airbyte unprivileged account for tunneling

* Added yum updates

* Create a private subnet and a postgres database within it

* Identifier for db

* Create postgres and bastion within a module.

* Set up postgres infrastructure

* Don't need this terraform wrapper when we run with tfenv

* Dropped incomplete WIP from GCP setup for this PR.

* Touchups to how to use terraform

* Updated to resolve merge conflict

* More separated top level structure to avoid monorepo problems with terraform destroy.

* Clarifying directory structure

* Migrated directory structure for testing infrastructure

Co-authored-by: Jenny Brown <jenny@airbyte.io>
This commit is contained in:
Sherif A. Nada
2021-08-03 14:39:26 -07:00
committed by GitHub
parent 16b21b4ef0
commit 2e3dfccc68
20 changed files with 586 additions and 0 deletions

View File

@@ -0,0 +1,55 @@
-- generic setup for a brand new empty postgresql RDS
CREATE
ROLE integrationtest_rw;
GRANT integrationtest_rw TO airbyte;
CREATE
DATABASE test OWNER integrationtest_rw;
GRANT CONNECT ON
DATABASE test TO integrationtest_rw;
CREATE
SCHEMA integrationtest AUTHORIZATION integrationtest_rw;
GRANT USAGE,
CREATE
ON
SCHEMA integrationtest TO integrationtest_rw;
GRANT SELECT
,
INSERT
,
UPDATE
,
DELETE
ON
ALL TABLES IN SCHEMA integrationtest TO integrationtest_rw;
ALTER DEFAULT PRIVILEGES IN SCHEMA integrationtest GRANT SELECT
,
INSERT
,
UPDATE
,
DELETE
ON
TABLES TO integrationtest_rw;
GRANT USAGE ON
ALL SEQUENCES IN SCHEMA integrationtest TO integrationtest_rw;
ALTER DEFAULT PRIVILEGES IN SCHEMA integrationtest GRANT USAGE ON
SEQUENCES TO integrationtest_rw;
REVOKE ALL ON
database template1
FROM
public;
REVOKE ALL ON
database postgres
FROM
public;