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

Sub cbsi #8

Merged
merged 75 commits into from
Jun 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
75 commits
Select commit Hold shift + click to select a range
cfa0c8c
fix: Workaround issue causing permanent diff in access list (#157)
mwallace582 Oct 12, 2022
d37f32a
chore: update .github/renovate.json
cloud-foundation-bot Oct 26, 2022
2ec07eb
chore: update .github/workflows/stale.yml
cloud-foundation-bot Oct 28, 2022
15c7053
chore(master): release 5.4.2 (#161)
release-please[bot] Nov 8, 2022
aedec7e
chore: update .github/renovate.json
cloud-foundation-bot Nov 8, 2022
8db535a
chore: update .github/renovate.json
cloud-foundation-bot Nov 8, 2022
819b4d1
chore(deps): update terraform googles to v4 (#169)
renovate[bot] Nov 14, 2022
f57042d
chore: update CODEOWNERS
cloud-foundation-bot Nov 28, 2022
fcd5e32
chore: update .github/renovate.json
cloud-foundation-bot Nov 28, 2022
14d8a12
chore: update CODEOWNERS
cloud-foundation-bot Nov 28, 2022
49ec782
chore: fix schema docs (#170)
bharathkkb Nov 29, 2022
09ebd13
chore(deps): update tf modules (#168)
renovate[bot] Dec 6, 2022
85f8e7b
chore: update .github/conventional-commit-lint.yaml
cloud-foundation-bot Dec 12, 2022
f278ff8
fix: fixes lint issues and generates metadata (#171)
g-awmalik Dec 27, 2022
79765bb
chore: update .github/workflows/stale.yml
cloud-foundation-bot Dec 28, 2022
e3c4c68
chore: update .github/renovate.json
cloud-foundation-bot Dec 29, 2022
14b4771
chore(master): release 5.4.3 (#172)
release-please[bot] Jan 21, 2023
0440257
chore: update .github/trusted-contribution.yml
cloud-foundation-bot Feb 8, 2023
ad3c347
feat: Add BigQuery data warehouse example (#179)
davenportjw Feb 17, 2023
d4f61d3
feat!: Add BQ authorized routine (function) in authorization sub-modu…
imrannayer Feb 17, 2023
54c9637
chore(deps): update terraform google to ~> 4.53.0 (#185)
renovate[bot] Feb 21, 2023
88d5fa4
fix(deps): update terraform terraform-google-modules/project-factory/…
renovate[bot] Feb 21, 2023
706e540
feat!: add max_time_travel_hours attribute (#176)
kpocius Feb 22, 2023
820deb8
chore: setup initial test for dwh (#187)
bharathkkb Feb 23, 2023
cff6861
chore(deps): update module github.com/googlecloudplatform/cloud-found…
renovate[bot] Feb 23, 2023
56d6f10
chore(deps): bump golang.org/x/net from 0.0.0-20211209124913-491a49ab…
dependabot[bot] Feb 23, 2023
3f77838
fix: Fix sql and eventarc trigger (#193)
davenportjw Feb 24, 2023
7c058cd
chore(deps): update module github.com/stretchr/testify to v1.8.2 (#198)
renovate[bot] Mar 6, 2023
ab9016f
chore: update .github/trusted-contribution.yml
cloud-foundation-bot Mar 7, 2023
b0b8047
chore(deps): update module github.com/googlecloudplatform/cloud-found…
renovate[bot] Mar 8, 2023
6e2a923
chore: update .github/renovate.json
cloud-foundation-bot Mar 13, 2023
03f01ed
feat: add optional table_name attr (#196)
meghein Mar 15, 2023
ef34309
fix: Eventarc post deploy process (#200)
davenportjw Mar 15, 2023
6fd3339
fix: looker URL tableId (#201)
davenportjw Mar 17, 2023
9e795e4
fix: pubsub sa grant (#204)
davenportjw Mar 24, 2023
2c48306
chore(deps): update module github.com/googlecloudplatform/cloud-found…
renovate[bot] Mar 28, 2023
d03750b
chore: update .github/workflows/stale.yml
cloud-foundation-bot Mar 29, 2023
47765d1
chore: update CODEOWNERS
cloud-foundation-bot Mar 31, 2023
e2d4acd
chore(deps): update cft/developer-tools docker tag to v1.11 (#209)
renovate[bot] Apr 6, 2023
a41234c
fix(deps): update dependency google-cloud-storage to v2.8.0 (#211)
renovate[bot] Apr 7, 2023
59a73e5
feat: added optional description parameter (#213)
ibantanovic Apr 11, 2023
b64874a
fix: update neos link, remove solution guide url
davenportjw Apr 13, 2023
b700cf3
chore(master): release 6.0.0 (#184)
release-please[bot] Apr 24, 2023
645e382
fix: update dw neos tutorial link (#215)
davenportjw Apr 28, 2023
a8855ad
chore: update .github/workflows/lint.yaml
cloud-foundation-bot May 5, 2023
dbbd88f
chore: update .github/workflows/lint.yaml
cloud-foundation-bot May 8, 2023
8be0b6e
chore(deps): update cft/developer-tools docker tag to v1.12 (#218)
renovate[bot] May 13, 2023
5a71be4
chore: update .github/workflows/stale.yml
cloud-foundation-bot May 16, 2023
ccbacd5
chore: update .github/trusted-contribution.yml
cloud-foundation-bot May 16, 2023
47943b0
chore: update .github/conventional-commit-lint.yaml
cloud-foundation-bot May 16, 2023
bea5c1b
chore: update CODEOWNERS
cloud-foundation-bot May 16, 2023
7e2801b
chore: update .github/workflows/lint.yaml
cloud-foundation-bot May 26, 2023
4b4f636
chore: update .github/workflows/lint.yaml
cloud-foundation-bot Jun 1, 2023
bb42f1f
chore: update .github/workflows/lint.yaml
cloud-foundation-bot Jun 1, 2023
20e696d
chore: update .github/renovate.json
cloud-foundation-bot Jun 1, 2023
f21d6a3
chore: update .github/workflows/lint.yaml
cloud-foundation-bot Jun 9, 2023
d081ef9
chore(deps): update cft/developer-tools docker tag to v1.13 (#222)
renovate[bot] Jun 13, 2023
38b21b2
feat: adds metadata generation for the blueprint (#220)
g-awmalik Jun 14, 2023
331145a
fix(deps): update data_warehouse dependency google-cloud-storage to v…
renovate[bot] Jun 15, 2023
6660e59
fix(deps): update data_warehouse terraform terraform-google-modules/p…
renovate[bot] Jun 15, 2023
f270329
fix(deps): update data_warehouse dependency google-cloud-bigquery to …
renovate[bot] Jun 15, 2023
ca31628
chore: update .github/renovate.json
cloud-foundation-bot Jun 15, 2023
b862b5e
chore(deps): update module go to 1.20 (#224)
renovate[bot] Jun 15, 2023
f0c8908
chore: add data_warehouse architecture diagrams
davenportjw Jun 15, 2023
9e81edb
chore: data_warehouse move application assets to src
davenportjw Jun 16, 2023
b11e5f3
fix: data_warehouse move workflows to file, add workflows identity
davenportjw Jun 20, 2023
4fe1504
feat: data_warehouse remove Cloud Function and replace with Workflows
davenportjw Jun 21, 2023
d33fddc
feat: data_warehouse enables public access prevention on buckets
davenportjw Jun 21, 2023
91a8ee7
chore: data_warehouse update readme, remove duplicate API
davenportjw Jun 22, 2023
ef94086
DTO-5025 Add authorized_views input var to main module
Jun 22, 2021
90edc3e
Add description attribute for tables and views (#4)
dlesco Jun 29, 2022
aef6fc8
Feature/view field description (#6)
dlesco Aug 8, 2022
88cfb2c
Add support to deletion protection at the table level (#5)
msgongora Aug 29, 2022
bc9c077
DTO-10579 Add authorized datasets in main module. (#7)
dlesco Oct 26, 2022
34e8c99
Merge branch 'main-cbsi' into sub-cbsi
dlesco Jun 23, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .github/conventional-commit-lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Copyright 2022-2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is automatically generated from:
# https://github.com/GoogleCloudPlatform/cloud-foundation-toolkit/blob/master/infra/terraform/test-org/github

enabled: true
always_check_pr_title: true
67 changes: 67 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:base",
":semanticCommits",
":preserveSemverRanges",
":rebaseStalePrs"
],
"stabilityDays":7,
"ignorePaths": [],
"labels": ["dependencies"],
"vulnerabilityAlerts":{
"labels":[
"type:security"
],
"stabilityDays":0
},
"separateMajorMinor":false,
"constraints": {
"go": "1.20"
},
"packageRules": [
{
"matchPaths": ["examples/**", "test/**", ".github/**"],
"extends": [":semanticCommitTypeAll(chore)"]
},
{
"matchPaths": ["*", "modules/**"],
"extends": [":semanticCommitTypeAll(fix)"]
},
{
"matchDepTypes": ["module"],
"groupName": "TF modules"
},
{
"matchDepTypes": ["require"],
"groupName": "GO modules",
"postUpdateOptions": ["gomodTidy"]
},
{
"matchDatasources": ["golang-version"],
"rangeStrategy": "bump",
"allowedVersions": "<1.21.0",
"postUpdateOptions": ["gomodTidy"]
},
{
"matchPackageNames": ["google", "google-beta"],
"groupName": "terraform googles"
}
],
"regexManagers": [
{
"fileMatch": ["(^|/)Makefile$"],
"matchStrings": ["DOCKER_TAG_VERSION_DEVELOPER_TOOLS := (?<currentValue>.*?)\\n"],
"datasourceTemplate": "docker",
"registryUrlTemplate": "https://gcr.io/cloud-foundation-cicd",
"depNameTemplate": "cft/developer-tools"
},
{
"fileMatch": ["(^|/)build/(int|lint)\\.cloudbuild\\.yaml$"],
"matchStrings": [" _DOCKER_TAG_VERSION_DEVELOPER_TOOLS: '(?<currentValue>.*?)'\\n"],
"datasourceTemplate": "docker",
"registryUrlTemplate": "https://gcr.io/cloud-foundation-cicd",
"depNameTemplate": "cft/developer-tools"
}
]
}
26 changes: 26 additions & 0 deletions .github/trusted-contribution.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is automatically generated from:
# https://github.com/GoogleCloudPlatform/cloud-foundation-toolkit/blob/master/infra/terraform/test-org/github

annotations:
- type: comment
text: "/gcbrun"
trustedContributors:
- release-please[bot]
- renovate[bot]
- renovate-bot
- forking-renovate[bot]
- dependabot[bot]
49 changes: 49 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is automatically generated from values at:
# https://github.com/GoogleCloudPlatform/cloud-foundation-toolkit/blob/master/infra/terraform/test-org/org/locals.tf

name: 'lint'

on:
pull_request:
branches:
- master

concurrency:
group: '${{ github.workflow }}-${{ github.head_ref || github.ref }}'
cancel-in-progress: true

jobs:
lint:
name: 'lint'
runs-on: 'ubuntu-latest'
steps:
- uses: 'actions/checkout@v3'
- id: variables
run: |
MAKEFILE=$(find . -name Makefile -print -quit)
if [ -z "$MAKEFILE" ]; then
echo dev-tools=gcr.io/cloud-foundation-cicd/cft/developer-tools:1 >> "$GITHUB_OUTPUT"
else
VERSION=$(grep "DOCKER_TAG_VERSION_DEVELOPER_TOOLS := " $MAKEFILE | cut -d\ -f3)
IMAGE=$(grep "DOCKER_IMAGE_DEVELOPER_TOOLS := " $MAKEFILE | cut -d\ -f3)
REGISTRY=$(grep "REGISTRY_URL := " $MAKEFILE | cut -d\ -f3)
echo dev-tools=${REGISTRY}/${IMAGE}:${VERSION} >> "$GITHUB_OUTPUT"
fi
- run: docker run --rm -e ENABLE_BPMETADATA -v ${{ github.workspace }}:/workspace ${{ steps.variables.outputs.dev-tools }} /usr/local/bin/test_lint.sh
env:
ENABLE_BPMETADATA: 1

9 changes: 6 additions & 3 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 Google LLC
# Copyright 2022-2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -12,6 +12,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is automatically generated from:
# https://github.com/GoogleCloudPlatform/cloud-foundation-toolkit/blob/master/infra/terraform/test-org/github

name: "Close stale issues"
on:
schedule:
Expand All @@ -21,9 +24,9 @@ jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v3
- uses: actions/stale@v8
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days'
stale-pr-message: 'This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days'
exempt-issue-labels: triaged
exempt-issue-labels: triaged,dependencies
2 changes: 2 additions & 0 deletions .kitchen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,5 @@ suites:
name: terraform
command_timeout: 1800
root_module_directory: test/fixtures/full
# setting version verification to false since it requires TF to be less than v1.1
verify_version: false
42 changes: 42 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,48 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [6.0.0](https://github.com/terraform-google-modules/terraform-google-bigquery/compare/v5.4.3...v6.0.0) (2023-04-13)


### ⚠ BREAKING CHANGES

* Increased minimum Google Provider version to 4.42 for root module ([#176](https://github.com/terraform-google-modules/terraform-google-bigquery/issues/176)) and 4.44 for authorization sub-module ([#180](https://github.com/terraform-google-modules/terraform-google-bigquery/issues/180))
* add max_time_travel_hours attribute ([#176](https://github.com/terraform-google-modules/terraform-google-bigquery/issues/176))
* Add BQ authorized routine (function) in authorization sub-module ([#180](https://github.com/terraform-google-modules/terraform-google-bigquery/issues/180))

### Features

* Add BigQuery data warehouse example ([#179](https://github.com/terraform-google-modules/terraform-google-bigquery/issues/179)) ([ad3c347](https://github.com/terraform-google-modules/terraform-google-bigquery/commit/ad3c3472b644fe79c37ae1416b28faf5e0cbe271))
* Add BQ authorized routine (function) in authorization sub-module ([#180](https://github.com/terraform-google-modules/terraform-google-bigquery/issues/180)) ([d4f61d3](https://github.com/terraform-google-modules/terraform-google-bigquery/commit/d4f61d3ee2427d8d42cab767c0326074c56d2c17))
* add max_time_travel_hours attribute ([#176](https://github.com/terraform-google-modules/terraform-google-bigquery/issues/176)) ([706e540](https://github.com/terraform-google-modules/terraform-google-bigquery/commit/706e540abfb727d75b51ef493af7cf49cc3081cf))
* add optional table_name attr ([#196](https://github.com/terraform-google-modules/terraform-google-bigquery/issues/196)) ([03f01ed](https://github.com/terraform-google-modules/terraform-google-bigquery/commit/03f01ed940244e1dff52f49df04ca7f46e30e83d))
* added optional description parameter ([#213](https://github.com/terraform-google-modules/terraform-google-bigquery/issues/213)) ([59a73e5](https://github.com/terraform-google-modules/terraform-google-bigquery/commit/59a73e5f474a0f9e59fdb37806bf9a18440987e5))


### Bug Fixes

* **deps:** update dependency google-cloud-storage to v2.8.0 ([#211](https://github.com/terraform-google-modules/terraform-google-bigquery/issues/211)) ([a41234c](https://github.com/terraform-google-modules/terraform-google-bigquery/commit/a41234c2f38524d37bea0919263df9eb204701ea))
* **deps:** update terraform terraform-google-modules/project-factory/google to v14 ([#186](https://github.com/terraform-google-modules/terraform-google-bigquery/issues/186)) ([88d5fa4](https://github.com/terraform-google-modules/terraform-google-bigquery/commit/88d5fa4a9fd8696566ef544a49e927e2a4c29a2e))
* Eventarc post deploy process ([#200](https://github.com/terraform-google-modules/terraform-google-bigquery/issues/200)) ([ef34309](https://github.com/terraform-google-modules/terraform-google-bigquery/commit/ef343096883bf6daaaea016ae561f089fab4539c))
* Fix sql and eventarc trigger ([#193](https://github.com/terraform-google-modules/terraform-google-bigquery/issues/193)) ([3f77838](https://github.com/terraform-google-modules/terraform-google-bigquery/commit/3f77838646470b6f42d9f4f47278e5f378143068))
* looker URL tableId ([#201](https://github.com/terraform-google-modules/terraform-google-bigquery/issues/201)) ([6fd3339](https://github.com/terraform-google-modules/terraform-google-bigquery/commit/6fd3339311a46cfbd98651ec5237f73b41a8d15f))
* pubsub sa grant ([#204](https://github.com/terraform-google-modules/terraform-google-bigquery/issues/204)) ([9e795e4](https://github.com/terraform-google-modules/terraform-google-bigquery/commit/9e795e42f78b757e0a92100d368e6bd297a97418))
* update neos link, remove solution guide url ([b64874a](https://github.com/terraform-google-modules/terraform-google-bigquery/commit/b64874a31ca8078e735785669ae6e26f62100467))

## [5.4.3](https://github.com/terraform-google-modules/terraform-google-bigquery/compare/v5.4.2...v5.4.3) (2022-12-29)


### Bug Fixes

* fixes lint issues and generates metadata ([#171](https://github.com/terraform-google-modules/terraform-google-bigquery/issues/171)) ([f278ff8](https://github.com/terraform-google-modules/terraform-google-bigquery/commit/f278ff83df9aa7ac52f1eb9ed8ac571c314a5509))

## [5.4.2](https://github.com/terraform-google-modules/terraform-google-bigquery/compare/v5.4.1...v5.4.2) (2022-10-28)


### Bug Fixes

* Workaround issue causing permanent diff in access list ([#157](https://github.com/terraform-google-modules/terraform-google-bigquery/issues/157)) ([cfa0c8c](https://github.com/terraform-google-modules/terraform-google-bigquery/commit/cfa0c8cc37bf7a418b185fc128edaf7ce27def14))

## [5.4.1](https://github.com/terraform-google-modules/terraform-google-bigquery/compare/v5.4.0...v5.4.1) (2022-06-03)


Expand Down
4 changes: 4 additions & 0 deletions CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# NOTE: This file is automatically generated from values at:
# https://github.com/GoogleCloudPlatform/cloud-foundation-toolkit/blob/master/infra/terraform/test-org/org/locals.tf

* @terraform-google-modules/cft-admins @davenportjw
10 changes: 7 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2022 Google LLC
# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -18,9 +18,11 @@
# Make will use bash instead of sh
SHELL := /usr/bin/env bash

DOCKER_TAG_VERSION_DEVELOPER_TOOLS := 1.0
DOCKER_TAG_VERSION_DEVELOPER_TOOLS := 1.13
DOCKER_IMAGE_DEVELOPER_TOOLS := cft/developer-tools
REGISTRY_URL := gcr.io/cloud-foundation-cicd
ENABLE_BPMETADATA := 1
export ENABLE_BPMETADATA

# Enter docker container for local development
.PHONY: docker_run
Expand Down Expand Up @@ -68,6 +70,7 @@ docker_test_integration:
.PHONY: docker_test_lint
docker_test_lint:
docker run --rm -it \
-e ENABLE_BPMETADATA \
-v $(CURDIR):/workspace \
$(REGISTRY_URL)/${DOCKER_IMAGE_DEVELOPER_TOOLS}:${DOCKER_TAG_VERSION_DEVELOPER_TOOLS} \
/usr/local/bin/test_lint.sh
Expand All @@ -76,9 +79,10 @@ docker_test_lint:
.PHONY: docker_generate_docs
docker_generate_docs:
docker run --rm -it \
-e ENABLE_BPMETADATA \
-v $(CURDIR):/workspace \
$(REGISTRY_URL)/${DOCKER_IMAGE_DEVELOPER_TOOLS}:${DOCKER_TAG_VERSION_DEVELOPER_TOOLS} \
/bin/bash -c 'source /usr/local/bin/task_helper_functions.sh && generate_docs'
/bin/bash -c 'source /usr/local/bin/task_helper_functions.sh && generate_docs -d'

# Alias for backwards compatibility
.PHONY: generate_docs
Expand Down
Loading