Skip to content

Commit

Permalink
adjusting default s3 path to cid-data- prefix (#717)
Browse files Browse the repository at this point in the history
  • Loading branch information
yprikhodko authored Jan 17, 2024
1 parent c4e2a73 commit bca1016
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion cfn-templates/cid-cfn.tests.bats
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ setup_file() {
QuickSightUser="$quicksight_user"\
CURBucketPath="s3://$cur_bucket/$cur_prefix/$cur_name/$cur_name"\
CURIsManagedByCloudFormation="yes"\
CostOptimizationDataCollectionBucketPath="s3://costoptimizationdata{account_id}"\
CostOptimizationDataCollectionBucketPath="s3://cid-data-{account_id}"\
DeployCUDOSDashboard="yes"\
DeployComputeOptimizerDashboard="no"\
DeployCostIntelligenceDashboard="yes"\
Expand Down
2 changes: 1 addition & 1 deletion cid/builtin/core/data/resources.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ views:
File: tao/glue_table.json
parameters:
s3FolderPath:
default: 's3://costoptimizationdata{account_id}/trusted-advisor/trusted-advisor-data'
default: 's3://cid-data-{account_id}/trusted-advisor/trusted-advisor-data'
description: Trusted Advisor Organization View report S3 path
ta_org_view:
File: tao/ta_org_view.sql
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ account_id=$(aws sts get-caller-identity --query "Account" --output text )
--dashboard-id compute-optimizer-dashboard \
--share-with-account \
--athena-database 'optimization_data' \
--view-compute-optimizer-lambda-lines-s3FolderPath 's3://costoptimizationdata{account_id}/Compute_Optimizer/Compute_Optimizer_ec2_lambda' \
--view-compute-optimizer-ebs-volume-lines-s3FolderPath 's3://costoptimizationdata{account_id}/Compute_Optimizer/Compute_Optimizer_ebs_volume' \
--view-compute-optimizer-auto-scale-lines-s3FolderPath 's3://costoptimizationdata{account_id}/Compute_Optimizer/Compute_Optimizer_auto_scale' \
--view-compute-optimizer-ec2-instance-lines-s3FolderPath 's3://costoptimizationdata{account_id}/Compute_Optimizer/Compute_Optimizer_ec2_instance'
--view-compute-optimizer-lambda-lines-s3FolderPath 's3://cid-data-{account_id}/Compute_Optimizer/Compute_Optimizer_ec2_lambda' \
--view-compute-optimizer-ebs-volume-lines-s3FolderPath 's3://cid-data-{account_id}/Compute_Optimizer/Compute_Optimizer_ebs_volume' \
--view-compute-optimizer-auto-scale-lines-s3FolderPath 's3://cid-data-{account_id}/Compute_Optimizer/Compute_Optimizer_auto_scale' \
--view-compute-optimizer-ec2-instance-lines-s3FolderPath 's3://cid-data-{account_id}/Compute_Optimizer/Compute_Optimizer_ec2_instance'

[ "$status" -eq 0 ]
}
Expand Down Expand Up @@ -43,10 +43,10 @@ account_id=$(aws sts get-caller-identity --query "Account" --output text )
@test "Update works" {
run cid-cmd -vv --yes update --force --recursive \
--dashboard-id compute-optimizer-dashboard \
--view-compute-optimizer-lambda-lines-s3FolderPath 's3://costoptimizationdata{account_id}/Compute_Optimizer/Compute_Optimizer_ec2_lambda' \
--view-compute-optimizer-ebs-volume-lines-s3FolderPath 's3://costoptimizationdata{account_id}/Compute_Optimizer/Compute_Optimizer_ebs_volume' \
--view-compute-optimizer-auto-scale-lines-s3FolderPath 's3://costoptimizationdata{account_id}/Compute_Optimizer/Compute_Optimizer_auto_scale' \
--view-compute-optimizer-ec2-instance-lines-s3FolderPath 's3://costoptimizationdata{account_id}/Compute_Optimizer/Compute_Optimizer_ec2_instance'
--view-compute-optimizer-lambda-lines-s3FolderPath 's3://cid-data-{account_id}/Compute_Optimizer/Compute_Optimizer_ec2_lambda' \
--view-compute-optimizer-ebs-volume-lines-s3FolderPath 's3://cid-data-{account_id}/Compute_Optimizer/Compute_Optimizer_ebs_volume' \
--view-compute-optimizer-auto-scale-lines-s3FolderPath 's3://cid-data-{account_id}/Compute_Optimizer/Compute_Optimizer_auto_scale' \
--view-compute-optimizer-ec2-instance-lines-s3FolderPath 's3://cid-data-{account_id}/Compute_Optimizer/Compute_Optimizer_ec2_instance'

[ "$status" -eq 0 ]
echo "$output" | grep 'Update completed'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ account_id=$(aws sts get-caller-identity --query "Account" --output text )
--athena-database 'optimization_data' \
--share-with-account \

--view-ta-organizational-view-reports-s3FolderPath "s3://costoptimizationdata$account_id/optics-data-collector/ta-data'"
--view-ta-organizational-view-reports-s3FolderPath "s3://cid-data-$account_id/optics-data-collector/ta-data'"

[ "$status" -eq 0 ]
}
Expand Down Expand Up @@ -41,7 +41,7 @@ account_id=$(aws sts get-caller-identity --query "Account" --output text )
@test "Update works" {
run cid-cmd -vv --yes update --force --recursive \
--dashboard-id ta-organizational-view \
--view-ta-organizational-view-reports-s3FolderPath "s3://costoptimizationdata$account_id)/optics-data-collector/ta-data"
--view-ta-organizational-view-reports-s3FolderPath "s3://cid-data-$account_id)/optics-data-collector/ta-data"

[ "$status" -eq 0 ]
echo "$output" | grep 'Update completed'
Expand Down

0 comments on commit bca1016

Please sign in to comment.