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

feat: import the resources for BI Extracts #226

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

CalvinRodo
Copy link
Member

@CalvinRodo CalvinRodo commented Jan 31, 2024

  • Import the s3 bucket that was created to store Cost and Usage Report 2.0 data
  • Update TF Plan actions to handle imports

PLEASE NOTE: This is on hold because of the change to the KMS Key that we don't want, we might need to update the S3 module in order to handle it.

- Import the s3 bucket that was created to store Cost and Usage Report 2.0 data
- Update TF Plan actions to handle imports
Copy link

Plan for org_account/bi_extracts

❌   Terraform Init: failed
❌   Terraform Validate: failed
❌   Terraform Format: failed
❌   Terraform Plan: failed
❌   Conftest: failed

Show Init results
Initializing modules...
Downloading git::https://github.com/cds-snc/terraform-modules.git?ref=v9.0.5 for cur_export_bucket...
- cur_export_bucket in .terraform/modules/cur_export_bucket/S3
There are some problems with the configuration, described below.

The Terraform configuration must be valid before initialization so that
Terraform can determine which modules and providers need to be installed.

Error: Unsupported block type

  on main.tf line 6:
   6: import { 

Blocks of type "import" are not expected here.


Error: Unsupported block type

  on main.tf line 17:
  17: import {

Blocks of type "import" are not expected here.

time=2024-01-31T18:36:22Z level=error msg=1 error occurred:
	* exit status 1


Show Validate results
�[0m�[1mInitializing modules...�[0m
�[31m�[0mThere are some problems with the configuration, described below.

The Terraform configuration must be valid before initialization so that
Terraform can determine which modules and providers need to be installed.�[0m�[0m
�[31m�[31m╷�[0m�[0m
�[31m│�[0m �[0m�[1m�[31mError: �[0m�[0m�[1mUnsupported block type�[0m
�[31m│�[0m �[0m
�[31m│�[0m �[0m�[0m  on main.tf line 6:
�[31m│�[0m �[0m   6: �[4mimport�[0m { �[0m
�[31m│�[0m �[0m
�[31m│�[0m �[0mBlocks of type "import" are not expected here.
�[31m╵�[0m�[0m
�[0m�[0m
�[31m�[31m╷�[0m�[0m
�[31m│�[0m �[0m�[1m�[31mError: �[0m�[0m�[1mUnsupported block type�[0m
�[31m│�[0m �[0m
�[31m│�[0m �[0m�[0m  on main.tf line 17:
�[31m│�[0m �[0m  17: �[4mimport�[0m {�[0m
�[31m│�[0m �[0m
�[31m│�[0m �[0mBlocks of type "import" are not expected here.
�[31m╵�[0m�[0m
�[0m�[0m
time=2024-01-31T18:36:23Z level=error msg=1 error occurred:
	* exit status 1


Show plan
�[0m�[1mInitializing modules...�[0m
�[31m�[0mThere are some problems with the configuration, described below.

The Terraform configuration must be valid before initialization so that
Terraform can determine which modules and providers need to be installed.�[0m�[0m
�[31m�[31m╷�[0m�[0m
�[31m│�[0m �[0m�[1m�[31mError: �[0m�[0m�[1mUnsupported block type�[0m
�[31m│�[0m �[0m
�[31m│�[0m �[0m�[0m  on main.tf line 6:
�[31m│�[0m �[0m   6: �[4mimport�[0m { �[0m
�[31m│�[0m �[0m
�[31m│�[0m �[0mBlocks of type "import" are not expected here.
�[31m╵�[0m�[0m
�[0m�[0m
�[31m�[31m╷�[0m�[0m
�[31m│�[0m �[0m�[1m�[31mError: �[0m�[0m�[1mUnsupported block type�[0m
�[31m│�[0m �[0m
�[31m│�[0m �[0m�[0m  on main.tf line 17:
�[31m│�[0m �[0m  17: �[4mimport�[0m {�[0m
�[31m│�[0m �[0m
�[31m│�[0m �[0mBlocks of type "import" are not expected here.
�[31m╵�[0m�[0m
�[0m�[0m
time=2024-01-31T18:36:25Z level=error msg=1 error occurred:
	* exit status 1


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant