broad-zoo-34077
07/18/2022, 4:10 AMabundant-king-51389
07/18/2022, 4:17 AMabundant-king-51389
07/18/2022, 4:18 AMINFRACOST_CLI_ARGS="--project-name lsk-kafka-ec2-prod"
(or as appropriate based on the stack's slug), if that mattersabundant-king-51389
07/18/2022, 4:23 AMSaved the plan to: spacelift.plan
To perform exactly these actions, run the following command to apply:
terraform apply "spacelift.plan"
[01G7YNKN4332YBVHC0MER7EMZQ] Changes are GO
[01G7YNKN4332YBVHC0MER7EMZQ] Uploading the list of managed resources...
[01G7YNKN4332YBVHC0MER7EMZQ] Generating Infracost JSON report from plan
[01G7YNKN4332YBVHC0MER7EMZQ] Infracost report generated successfully
[01G7YNKN4332YBVHC0MER7EMZQ] Mapping Infracost data to Terraform resources
[01G7YNKN4332YBVHC0MER7EMZQ] Costs mapped successfully
[01G7YNKN4332YBVHC0MER7EMZQ] Please be aware that Run changes calculation includes Terraform output changes.
[01G7YNKN4332YBVHC0MER7EMZQ] Resource list upload is GO
[01G7YNKN4332YBVHC0MER7EMZQ] Generating JSON representation of the plan...
[01G7YNKN4332YBVHC0MER7EMZQ] JSON representation is GO
[01G7YNKN4332YBVHC0MER7EMZQ] Generating Infracost JSON report from plan
[01G7YNKN4332YBVHC0MER7EMZQ] Infracost report generated successfully
[01G7YNKN4332YBVHC0MER7EMZQ] Evaluated 1 plan policy
[01G7YNKN4332YBVHC0MER7EMZQ] Plan policy warning: monthly cost increase greater than $50 ($1464.92)
[01G7YNKN4332YBVHC0MER7EMZQ] Plan policy warning: monthly cost increase greater than 5% (20.35%)
[01G7YNKN4332YBVHC0MER7EMZQ] Plan checks are GO
Initializing00:0615 minutes ago
Preparing00:0415 minutes ago
(the monthly cost warnings are custom code by us using infracost's JSON data)busy-agent-35515
07/18/2022, 8:25 AMINFRACOST_ENABLE_CLOUD=true
env var and make another run. Although there is not much info in their docs, the env var may be propagated to the CLI run.white-airport-8778
infracost comment
, which Spacelift doesn’t use. We’re changing that in the next two weeks so when you tick that box infracost breakdown/diff/comment/output
are sent, meaning even if you use Spacelift you’ll be able to see the cost estimates in Infracost Cloud. Until then, please set the INFRACOST_ENABLE_CLOUD=true
as Vadim mentioned that does the same thing.
BTW, for github/gitlab, the Infracost CLI detects pull request data (e.g. PR URL, author) and shows them in Infracost Cloud but in Spacelift it can’t do that, so would it be helpful to have those as infracost env vars/flags so you can define them in the same way you do with project-name?abundant-king-51389
07/18/2022, 9:00 AMwhite-airport-8778