-
Notifications
You must be signed in to change notification settings - Fork 173
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
Terraform deployment not compatible with CID dashboard deployment #1029
Comments
@sean-nixon we probably need to provide terrarform wrappers for Data Exports modules as well |
Also running into something similar. We are being advised by our TAM to go forward with CUDOS v5 and CUR 2.0, but the 'source' Terraform module provided only creates the That resource is legacy and not CUR 2.0. Rather, the resource it should be using is this: For us to move forward, we will have to copy the source module and modify it so that it uses the correct resource. However - I think that once that issue is addressed, the rest of the provided bits and pieces should work, as all of the complicated downstream infrastructure has already been coded to support CUR 2.0. I will report back once I have been successful! |
Some notes on the changes I had to make.
So far, working for me! I wrote the code/test/readme stuff but didn't get to the steps of actually making a PR. Let me know if you'd like me to do so. |
Great job. Please submit a pr. Much appreciate your contribution |
Hopefully this is helpful. I followed the contributions guide as best I could. |
Amusingly, I was already using that |
Ok, am now encountering many issues that stem from the bucket name being wrong. I believe this is due to a shift in naming conventions in the move from CUR1 to CUR2.
The existing TF instructions create the CUR1 naming pattern, but the
BucketName: !Sub "${ResourcePrefix}-${AWS::AccountId}-data-exports"
This sheds some light: aws-cudos-framework-deployment/cfn-templates/cid-cfn.yml Lines 136 to 140 in 6706725
i.e. "We support 2 options: CUR 2.0 from DataExports stack managed by CID or CUR 1(Legacy).
However, just a few lines down from that...
Default: 's3://cid-{account_id}-shared/cur/'
If CUR version2 is a default, and this is a default, then the data-exports stack can't work? And then down here:
CUR BucketPath={parts[0]} format is not recognized. It must be s3://(bucket)/cur or s3://(bucket)/(curprefix)/(curname)/(curname)
Still digging - there is something fundamental I'm missing maybe...? |
if we use CUR2, the stack with CUR2 comes with athena table and crawler. So we do not manage it here in this stack as we do for CUR2 |
Ok, so I wrote some simple Terraform wrappers for the three Cloudformation links here: https://catalog.workshops.aws/awscid/en-US/dashboards/foundational/cudos-cid-kpi/deploy I broke apart the URLs from that page to get the needed config, plus looked at the Cloudformation YAML files for more details. After applying them in order, everything is working wonderfully. So I think the lesson is, for CUR2/CudosV5, do not use the existing TF modules. If it would help, I can submit a PR with my example code, but honestly I whipped it off in an hour or so - not exactly a shining example of Terraform work. |
When deploying either the CUDOS, Cost Intelligence or KPI dashboards the CID Dashboard deployment via terraform wrapper uses a cloudformation template that relies on a stack output
cid-DataExport-Database
from the cloudformation destination deployment. When deploying the solution using thecur-setup-destination
terraform module this stack doesn't exist and as a result, the stack output also does not exist; this causes the stack deploy to fail.By passing
CurVersion = "1.0"
to the cid deployment stack parameters this issue looks like it is resolved.There isn't any reference in the documentation that this stack parameter is required currently in either the Terraform deployment instructions or the README for the cid-dashboards terraform module.
It would save implementers a lot of time spent troubleshooting if this is noted in the documentation.
The text was updated successfully, but these errors were encountered: