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:
@@ -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;
|
||||
Reference in New Issue
Block a user