From e92ad7824b0eb7a7fb98e07525404bbb8f66aaab Mon Sep 17 00:00:00 2001 From: tomarv2 Date: Wed, 13 Apr 2022 19:17:35 +0000 Subject: [PATCH 1/2] Sync from management repo --- .github/workflows/pr-lint.yml | 15 +++++++ README.md | 78 +++-------------------------------- 2 files changed, 21 insertions(+), 72 deletions(-) create mode 100644 .github/workflows/pr-lint.yml diff --git a/.github/workflows/pr-lint.yml b/.github/workflows/pr-lint.yml new file mode 100644 index 0000000..f046139 --- /dev/null +++ b/.github/workflows/pr-lint.yml @@ -0,0 +1,15 @@ +name: PR lint + +on: + pull_request: + types: ['opened', 'edited', 'reopened', 'synchronize'] + +jobs: + pr-lint: + runs-on: ubuntu-latest + steps: + - uses: seferov/pr-lint-action@master + with: + title-regex: '^((Pulling|Update from) refs\/heads\/|(\[tf (plan|apply|destroy|status)\]|\[non tf\])\s(feat|fix|build|chore|ci|docs|style|refactor|perf|test)(\!?): (.{3,250})[^\s*]$)' + github-token: ${{ secrets.GITHUB_TOKEN }} + auto-close-message: 'Closing this pull request since the title does not match %pattern% pattern. Please fix the title and re-open the pull request.' diff --git a/README.md b/README.md index fbc011d..0ce7839 100644 --- a/README.md +++ b/README.md @@ -175,91 +175,25 @@ Error: MALFORMED_REQUEST: Failed credentials validation checks: Spot Cancellatio ## Requirements -| Name | Version | -|------|---------| -| [terraform](#requirement\_terraform) | >= 1.0.1 | -| [aws](#requirement\_aws) | ~> 3.63 | -| [databricks](#requirement\_databricks) | 0.5.1 | -| [random](#requirement\_random) | ~> 3.1 | -| [time](#requirement\_time) | ~> 0.7 | +No requirements. ## Providers -| Name | Version | -|------|---------| -| [aws](#provider\_aws) | ~> 3.63 | -| [databricks](#provider\_databricks) | 0.5.1 | -| [databricks.created\_workspace](#provider\_databricks.created\_workspace) | 0.5.1 | -| [databricks.mws](#provider\_databricks.mws) | 0.5.1 | -| [random](#provider\_random) | ~> 3.1 | -| [time](#provider\_time) | ~> 0.7 | +No providers. ## Modules -| Name | Source | Version | -|------|--------|---------| -| [iam\_policies](#module\_iam\_policies) | git::git@github.com:tomarv2/terraform-aws-iam-policies.git | v0.0.4 | -| [iam\_role](#module\_iam\_role) | git::git@github.com:tomarv2/terraform-aws-iam-role.git//modules/iam_role_external | v0.0.7 | -| [s3](#module\_s3) | git::git@github.com:tomarv2/terraform-aws-s3.git | v0.0.8 | -| [vpc](#module\_vpc) | git::git@github.com:tomarv2/terraform-aws-vpc.git | v0.0.6 | +No modules. ## Resources -| Name | Type | -|------|------| -| [aws_s3_bucket_policy.root_bucket_policy](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_policy) | resource | -| [databricks_mws_credentials.this](https://registry.terraform.io/providers/databrickslabs/databricks/0.5.1/docs/resources/mws_credentials) | resource | -| [databricks_mws_networks.this](https://registry.terraform.io/providers/databrickslabs/databricks/0.5.1/docs/resources/mws_networks) | resource | -| [databricks_mws_storage_configurations.this](https://registry.terraform.io/providers/databrickslabs/databricks/0.5.1/docs/resources/mws_storage_configurations) | resource | -| [databricks_mws_workspaces.this](https://registry.terraform.io/providers/databrickslabs/databricks/0.5.1/docs/resources/mws_workspaces) | resource | -| [databricks_token.pat](https://registry.terraform.io/providers/databrickslabs/databricks/0.5.1/docs/resources/token) | resource | -| [random_string.naming](https://registry.terraform.io/providers/hashicorp/random/latest/docs/resources/string) | resource | -| [time_sleep.wait](https://registry.terraform.io/providers/hashicorp/time/latest/docs/resources/sleep) | resource | -| [aws_region.current](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/region) | data source | -| [databricks_aws_assume_role_policy.this](https://registry.terraform.io/providers/databrickslabs/databricks/0.5.1/docs/data-sources/aws_assume_role_policy) | data source | -| [databricks_aws_bucket_policy.this](https://registry.terraform.io/providers/databrickslabs/databricks/0.5.1/docs/data-sources/aws_bucket_policy) | data source | -| [databricks_aws_crossaccount_policy.cross_account_iam_policy](https://registry.terraform.io/providers/databrickslabs/databricks/0.5.1/docs/data-sources/aws_crossaccount_policy) | data source | +No resources. ## Inputs -| Name | Description | Type | Default | Required | -|------|-------------|------|---------|:--------:| -| [cidr\_block](#input\_cidr\_block) | The CIDR block for the VPC | `string` | `"10.4.0.0/16"` | no | -| [custom\_tags](#input\_custom\_tags) | Extra custom tags | `any` | `null` | no | -| [databricks\_account\_id](#input\_databricks\_account\_id) | External ID provided by third party. | `string` | n/a | yes | -| [databricks\_account\_password](#input\_databricks\_account\_password) | databricks account password | `string` | n/a | yes | -| [databricks\_account\_username](#input\_databricks\_account\_username) | databricks account username | `string` | n/a | yes | -| [databricks\_hostname](#input\_databricks\_hostname) | databricks hostname | `string` | `"https://accounts.cloud.databricks.com"` | no | -| [existing\_role\_name](#input\_existing\_role\_name) | If you want to use existing role name, else a new role will be created | `string` | `null` | no | -| [prjid](#input\_prjid) | Name of the project/stack e.g: mystack, nifieks, demoaci. Should not be changed after running 'tf apply' | `string` | n/a | yes | -| [profile](#input\_profile) | profile to use for resource creation | `string` | `"default"` | no | -| [profile\_for\_iam](#input\_profile\_for\_iam) | profile to use for IAM | `string` | `null` | no | -| [region](#input\_region) | AWS region to deploy resources | `string` | `"us-east-1"` | no | -| [teamid](#input\_teamid) | Name of the team/group e.g. devops, dataengineering. Should not be changed after running 'tf apply' | `string` | n/a | yes | +No inputs. ## Outputs -| Name | Description | -|------|-------------| -| [databricks\_credentials\_id](#output\_databricks\_credentials\_id) | databricks credentials id | -| [databricks\_deployment\_name](#output\_databricks\_deployment\_name) | databricks deployment name | -| [databricks\_host](#output\_databricks\_host) | databricks hostname | -| [databricks\_mws\_credentials\_id](#output\_databricks\_mws\_credentials\_id) | databricks mws credentials id | -| [databricks\_mws\_network\_id](#output\_databricks\_mws\_network\_id) | databricks mws network id | -| [databricks\_mws\_storage\_bucket\_name](#output\_databricks\_mws\_storage\_bucket\_name) | databricks mws storage bucket name | -| [databricks\_mws\_storage\_id](#output\_databricks\_mws\_storage\_id) | databricks mws storage id | -| [databricks\_token](#output\_databricks\_token) | Value of the newly created token | -| [databricks\_token\_lifetime\_hours](#output\_databricks\_token\_lifetime\_hours) | Token validity | -| [iam\_role\_arn](#output\_iam\_role\_arn) | iam role arn | -| [inline\_policy\_id](#output\_inline\_policy\_id) | inline policy id | -| [nonsensitive\_databricks\_token](#output\_nonsensitive\_databricks\_token) | Value of the newly created token (nonsensitive) | -| [s3\_bucket\_arn](#output\_s3\_bucket\_arn) | s3 bucket arn | -| [s3\_bucket\_id](#output\_s3\_bucket\_id) | s3 bucket id | -| [s3\_bucket\_name](#output\_s3\_bucket\_name) | s3 bucket name | -| [storage\_configuration\_id](#output\_storage\_configuration\_id) | databricks storage configuration id | -| [vpc\_id](#output\_vpc\_id) | vpc id | -| [vpc\_route\_table\_ids](#output\_vpc\_route\_table\_ids) | list of VPC route tables IDs | -| [vpc\_security\_group\_id](#output\_vpc\_security\_group\_id) | list of VPC security group ID | -| [vpc\_subnet\_ids](#output\_vpc\_subnet\_ids) | list of subnet ids within VPC | -| [workspace\_url](#output\_workspace\_url) | databricks workspace url | +No outputs. From 624f2d1de8ed9db3ac9f6c9b319ca2357f51bb08 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 13 Apr 2022 19:19:31 +0000 Subject: [PATCH 2/2] terraform-docs: automated action --- README.md | 78 ++++++++++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 72 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 0ce7839..fbc011d 100644 --- a/README.md +++ b/README.md @@ -175,25 +175,91 @@ Error: MALFORMED_REQUEST: Failed credentials validation checks: Spot Cancellatio ## Requirements -No requirements. +| Name | Version | +|------|---------| +| [terraform](#requirement\_terraform) | >= 1.0.1 | +| [aws](#requirement\_aws) | ~> 3.63 | +| [databricks](#requirement\_databricks) | 0.5.1 | +| [random](#requirement\_random) | ~> 3.1 | +| [time](#requirement\_time) | ~> 0.7 | ## Providers -No providers. +| Name | Version | +|------|---------| +| [aws](#provider\_aws) | ~> 3.63 | +| [databricks](#provider\_databricks) | 0.5.1 | +| [databricks.created\_workspace](#provider\_databricks.created\_workspace) | 0.5.1 | +| [databricks.mws](#provider\_databricks.mws) | 0.5.1 | +| [random](#provider\_random) | ~> 3.1 | +| [time](#provider\_time) | ~> 0.7 | ## Modules -No modules. +| Name | Source | Version | +|------|--------|---------| +| [iam\_policies](#module\_iam\_policies) | git::git@github.com:tomarv2/terraform-aws-iam-policies.git | v0.0.4 | +| [iam\_role](#module\_iam\_role) | git::git@github.com:tomarv2/terraform-aws-iam-role.git//modules/iam_role_external | v0.0.7 | +| [s3](#module\_s3) | git::git@github.com:tomarv2/terraform-aws-s3.git | v0.0.8 | +| [vpc](#module\_vpc) | git::git@github.com:tomarv2/terraform-aws-vpc.git | v0.0.6 | ## Resources -No resources. +| Name | Type | +|------|------| +| [aws_s3_bucket_policy.root_bucket_policy](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_policy) | resource | +| [databricks_mws_credentials.this](https://registry.terraform.io/providers/databrickslabs/databricks/0.5.1/docs/resources/mws_credentials) | resource | +| [databricks_mws_networks.this](https://registry.terraform.io/providers/databrickslabs/databricks/0.5.1/docs/resources/mws_networks) | resource | +| [databricks_mws_storage_configurations.this](https://registry.terraform.io/providers/databrickslabs/databricks/0.5.1/docs/resources/mws_storage_configurations) | resource | +| [databricks_mws_workspaces.this](https://registry.terraform.io/providers/databrickslabs/databricks/0.5.1/docs/resources/mws_workspaces) | resource | +| [databricks_token.pat](https://registry.terraform.io/providers/databrickslabs/databricks/0.5.1/docs/resources/token) | resource | +| [random_string.naming](https://registry.terraform.io/providers/hashicorp/random/latest/docs/resources/string) | resource | +| [time_sleep.wait](https://registry.terraform.io/providers/hashicorp/time/latest/docs/resources/sleep) | resource | +| [aws_region.current](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/region) | data source | +| [databricks_aws_assume_role_policy.this](https://registry.terraform.io/providers/databrickslabs/databricks/0.5.1/docs/data-sources/aws_assume_role_policy) | data source | +| [databricks_aws_bucket_policy.this](https://registry.terraform.io/providers/databrickslabs/databricks/0.5.1/docs/data-sources/aws_bucket_policy) | data source | +| [databricks_aws_crossaccount_policy.cross_account_iam_policy](https://registry.terraform.io/providers/databrickslabs/databricks/0.5.1/docs/data-sources/aws_crossaccount_policy) | data source | ## Inputs -No inputs. +| Name | Description | Type | Default | Required | +|------|-------------|------|---------|:--------:| +| [cidr\_block](#input\_cidr\_block) | The CIDR block for the VPC | `string` | `"10.4.0.0/16"` | no | +| [custom\_tags](#input\_custom\_tags) | Extra custom tags | `any` | `null` | no | +| [databricks\_account\_id](#input\_databricks\_account\_id) | External ID provided by third party. | `string` | n/a | yes | +| [databricks\_account\_password](#input\_databricks\_account\_password) | databricks account password | `string` | n/a | yes | +| [databricks\_account\_username](#input\_databricks\_account\_username) | databricks account username | `string` | n/a | yes | +| [databricks\_hostname](#input\_databricks\_hostname) | databricks hostname | `string` | `"https://accounts.cloud.databricks.com"` | no | +| [existing\_role\_name](#input\_existing\_role\_name) | If you want to use existing role name, else a new role will be created | `string` | `null` | no | +| [prjid](#input\_prjid) | Name of the project/stack e.g: mystack, nifieks, demoaci. Should not be changed after running 'tf apply' | `string` | n/a | yes | +| [profile](#input\_profile) | profile to use for resource creation | `string` | `"default"` | no | +| [profile\_for\_iam](#input\_profile\_for\_iam) | profile to use for IAM | `string` | `null` | no | +| [region](#input\_region) | AWS region to deploy resources | `string` | `"us-east-1"` | no | +| [teamid](#input\_teamid) | Name of the team/group e.g. devops, dataengineering. Should not be changed after running 'tf apply' | `string` | n/a | yes | ## Outputs -No outputs. +| Name | Description | +|------|-------------| +| [databricks\_credentials\_id](#output\_databricks\_credentials\_id) | databricks credentials id | +| [databricks\_deployment\_name](#output\_databricks\_deployment\_name) | databricks deployment name | +| [databricks\_host](#output\_databricks\_host) | databricks hostname | +| [databricks\_mws\_credentials\_id](#output\_databricks\_mws\_credentials\_id) | databricks mws credentials id | +| [databricks\_mws\_network\_id](#output\_databricks\_mws\_network\_id) | databricks mws network id | +| [databricks\_mws\_storage\_bucket\_name](#output\_databricks\_mws\_storage\_bucket\_name) | databricks mws storage bucket name | +| [databricks\_mws\_storage\_id](#output\_databricks\_mws\_storage\_id) | databricks mws storage id | +| [databricks\_token](#output\_databricks\_token) | Value of the newly created token | +| [databricks\_token\_lifetime\_hours](#output\_databricks\_token\_lifetime\_hours) | Token validity | +| [iam\_role\_arn](#output\_iam\_role\_arn) | iam role arn | +| [inline\_policy\_id](#output\_inline\_policy\_id) | inline policy id | +| [nonsensitive\_databricks\_token](#output\_nonsensitive\_databricks\_token) | Value of the newly created token (nonsensitive) | +| [s3\_bucket\_arn](#output\_s3\_bucket\_arn) | s3 bucket arn | +| [s3\_bucket\_id](#output\_s3\_bucket\_id) | s3 bucket id | +| [s3\_bucket\_name](#output\_s3\_bucket\_name) | s3 bucket name | +| [storage\_configuration\_id](#output\_storage\_configuration\_id) | databricks storage configuration id | +| [vpc\_id](#output\_vpc\_id) | vpc id | +| [vpc\_route\_table\_ids](#output\_vpc\_route\_table\_ids) | list of VPC route tables IDs | +| [vpc\_security\_group\_id](#output\_vpc\_security\_group\_id) | list of VPC security group ID | +| [vpc\_subnet\_ids](#output\_vpc\_subnet\_ids) | list of subnet ids within VPC | +| [workspace\_url](#output\_workspace\_url) | databricks workspace url |