rshade
Repos
75
Followers
14
Following
36

Web-sockets tunnel for HTTP requests: facilitates requests to an HTTP server sitting behind a firewall

0
0

Cloud cost estimates for Terraform in pull requests💰📉 Love your cloud bill!

0
0

Events

delete branch
rshade delete branch aws-finops-examples
Created at 7 hours ago

Adding in AWS Finops Policy Examples (#1272)

  • Adding in AWS Finops Policy Examples

  • adding license models

  • Adding notes

  • Updating 2019 - 2022

  • Updating to FinOps

  • Cleanup, and 4 spaces

Created at 7 hours ago
pull request closed
Adding in AWS Finops Policy Examples

This is a collection of finops policy examples for AWS

Created at 7 hours ago

Go Mod Tidy

Created at 1 day ago

fix: don't assume role when parsing Terragrunt (#1977)

Previously if the user had iam_role set in their Terragrunt config we were assuming the role like Terragrunt does. This was failing in cases where the AWS credentials were not availability in the environment. Since we're parsing the HCL we don't make any calls to the AWS APIs so don't need to assume the role.

chore: update go-git to use the latest master hash (#1989)

fixes: https://github.com/infracost/infracost/issues/1987

This change updates the go-git module to the latest master snapshot.

fix(azure): fix azurerm_function_app product filters following Azure API changes

fix(azure): fix azurerm_mysql_flexible_server product filters following Azure API changes

feat(azure): Add support for case-insensitive VM sizes to linux_virtual_machine resource (#1994)

  • feat(Azure): Add support for case insensitive Azure VM sizes

  • chore(azure): Add test cases for linux_virtual_machine fix

Co-authored-by: Vadim Golub vadim@infracost.io

enhance: add Run ID to event properties (#1998)

feat: additional VCS env vars (#1990)

  • feat: additional VCS env vars

fixes: https://github.com/infracost/infracost/issues/1976

  • Adds support for additional env vars. This means users can specify incomplete metadata in deployment and VCS platforms, which don't supply valid metadata.

  • Refactors the metadata package to merge user specified metadata no matter which platform is identified

  • Removes TFC metadta fetching method as this is now redundant as all the information will be supplied by env vars

  • Additional test coverage for env var merging

  • test: logging path used in metadata

  • fix: set github actions value to null to avoid metadata parsing in local test

  • revert: go workflow tests

  • fix: check GITHUB_ACTIONS env var is actually set

  • fix: mark env var as blank for test

  • refactor: change repoUrl to repositoryUrl

  • chore: rename env vars to be inline with json vals

  • fix: timestamp invalid causing marshal error

  • refactor: rename env vars for vcs prefix

  • feat: parse id from pr url if provided

  • fix: commit metadata to commitSha

feat: Add upload command (#1997)

  • refactor: remove shouldStoreRun for DashboardAPIClient

  • feat: add upload command

  • refactor: use new logger

fix: use context method for cloud enabled telemetry value (#1999)

Uses the correct IsCloudEnabled method to set cloudEnabled telemetry.

fix: break help text into multiple lines (#2000)

  • fix: break help text into multiple lines

Also add the docs link

  • fix: cleanup whitespace

Co-authored-by: tim775 52185+tim775@users.noreply.github.com

feat: add support for me-central-1, Middle East (UAE) region (#2001)

fix: detect vcs provider from remote if not provided (#2002)

  • fix: detect vcs provider from remote if not provided

Changes the metadata fetcher to set a vcs provider from the host if it has not been provided already. This is useful for deployment platforms like atlantis.

  • fix: vcs provider in test

docs: update screenshots

test(aws): Fix price hashes for China data transfer tests

The records with the price hashes swapped directions:

  • was: cn-north-1 -> cn-northwest-1 for c1bbbe...
  • now: cn-north-1 -> cn-northwest-1 for 3700bb...

and vice versa. The pricing is the same, so I'd consider this a safe change.

chore: Remove unused code for deprecated registration method

chore: update supported security patch versions

chore: add debug line on client requests (#2018)

adds debug line to log similar to following:

'POST' request to '/graphql' using trace_id: '4af66d3e-38a7-4ef6-85ee-0b327125eca2'

which means we can trace the cli run through the graphql server.

fix: Fix project name generation from complex URLs (#2016)

fix: filter repoMetadata from telemetry (#2020)

chore(deps): bump github.com/aws/aws-sdk-go-v2/service/autoscaling (#2021)

Bumps github.com/aws/aws-sdk-go-v2/service/autoscaling from 1.23.6 to 1.23.14.


updated-dependencies:

  • dependency-name: github.com/aws/aws-sdk-go-v2/service/autoscaling dependency-type: direct:production update-type: version-update:semver-patch ...

Signed-off-by: dependabot[bot] support@github.com

Signed-off-by: dependabot[bot] support@github.com Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Created at 1 day ago

chore(deps): bump github.com/aws/aws-sdk-go-v2/service/s3 (#2073)

Bumps github.com/aws/aws-sdk-go-v2/service/s3 from 1.27.9 to 1.27.11.


updated-dependencies:

  • dependency-name: github.com/aws/aws-sdk-go-v2/service/s3 dependency-type: direct:production update-type: version-update:semver-patch ...

Signed-off-by: dependabot[bot] support@github.com

Signed-off-by: dependabot[bot] support@github.com Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

chore(deps): bump github.com/slack-go/slack from 0.11.2 to 0.11.3 (#2040)

Bumps github.com/slack-go/slack from 0.11.2 to 0.11.3.


updated-dependencies:

  • dependency-name: github.com/slack-go/slack dependency-type: direct:production update-type: version-update:semver-patch ...

Signed-off-by: dependabot[bot] support@github.com

Signed-off-by: dependabot[bot] support@github.com Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

chore(deps): bump github.com/aws/aws-sdk-go-v2/service/autoscaling (#2068)

Bumps github.com/aws/aws-sdk-go-v2/service/autoscaling from 1.23.14 to 1.23.16.


updated-dependencies:

  • dependency-name: github.com/aws/aws-sdk-go-v2/service/autoscaling dependency-type: direct:production update-type: version-update:semver-patch ...

Signed-off-by: dependabot[bot] support@github.com

Signed-off-by: dependabot[bot] support@github.com Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

chore(deps): bump github.com/google/go-cmp from 0.5.8 to 0.5.9 (#2047)

Bumps github.com/google/go-cmp from 0.5.8 to 0.5.9.


updated-dependencies:

  • dependency-name: github.com/google/go-cmp dependency-type: direct:production update-type: version-update:semver-patch ...

Signed-off-by: dependabot[bot] support@github.com

Signed-off-by: dependabot[bot] support@github.com Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

chore(deps): bump github.com/aws/aws-sdk-go-v2/service/eks (#2070)

Bumps github.com/aws/aws-sdk-go-v2/service/eks from 1.21.11 to 1.22.1.


updated-dependencies:

  • dependency-name: github.com/aws/aws-sdk-go-v2/service/eks dependency-type: direct:production update-type: version-update:semver-minor ...

Signed-off-by: dependabot[bot] support@github.com

Signed-off-by: dependabot[bot] support@github.com Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

chore(deps): bump github.com/open-policy-agent/opa from 0.43.0 to 0.44.0 (#2042)

Bumps github.com/open-policy-agent/opa from 0.43.0 to 0.44.0.


updated-dependencies:

  • dependency-name: github.com/open-policy-agent/opa dependency-type: direct:production update-type: version-update:semver-minor ...

Signed-off-by: dependabot[bot] support@github.com

Signed-off-by: dependabot[bot] support@github.com Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

chore(deps): bump github.com/aws/aws-sdk-go-v2/service/dynamodb (#2071)

Bumps github.com/aws/aws-sdk-go-v2/service/dynamodb from 1.16.4 to 1.17.1.


updated-dependencies:

  • dependency-name: github.com/aws/aws-sdk-go-v2/service/dynamodb dependency-type: direct:production update-type: version-update:semver-minor ...

Signed-off-by: dependabot[bot] support@github.com

Signed-off-by: dependabot[bot] support@github.com Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Created at 1 day ago

fix: don't assume role when parsing Terragrunt (#1977)

Previously if the user had iam_role set in their Terragrunt config we were assuming the role like Terragrunt does. This was failing in cases where the AWS credentials were not availability in the environment. Since we're parsing the HCL we don't make any calls to the AWS APIs so don't need to assume the role.

chore: update go-git to use the latest master hash (#1989)

fixes: https://github.com/infracost/infracost/issues/1987

This change updates the go-git module to the latest master snapshot.

fix(azure): fix azurerm_function_app product filters following Azure API changes

fix(azure): fix azurerm_mysql_flexible_server product filters following Azure API changes

feat(azure): Add support for case-insensitive VM sizes to linux_virtual_machine resource (#1994)

  • feat(Azure): Add support for case insensitive Azure VM sizes

  • chore(azure): Add test cases for linux_virtual_machine fix

Co-authored-by: Vadim Golub vadim@infracost.io

enhance: add Run ID to event properties (#1998)

feat: additional VCS env vars (#1990)

  • feat: additional VCS env vars

fixes: https://github.com/infracost/infracost/issues/1976

  • Adds support for additional env vars. This means users can specify incomplete metadata in deployment and VCS platforms, which don't supply valid metadata.

  • Refactors the metadata package to merge user specified metadata no matter which platform is identified

  • Removes TFC metadta fetching method as this is now redundant as all the information will be supplied by env vars

  • Additional test coverage for env var merging

  • test: logging path used in metadata

  • fix: set github actions value to null to avoid metadata parsing in local test

  • revert: go workflow tests

  • fix: check GITHUB_ACTIONS env var is actually set

  • fix: mark env var as blank for test

  • refactor: change repoUrl to repositoryUrl

  • chore: rename env vars to be inline with json vals

  • fix: timestamp invalid causing marshal error

  • refactor: rename env vars for vcs prefix

  • feat: parse id from pr url if provided

  • fix: commit metadata to commitSha

feat: Add upload command (#1997)

  • refactor: remove shouldStoreRun for DashboardAPIClient

  • feat: add upload command

  • refactor: use new logger

fix: use context method for cloud enabled telemetry value (#1999)

Uses the correct IsCloudEnabled method to set cloudEnabled telemetry.

fix: break help text into multiple lines (#2000)

  • fix: break help text into multiple lines

Also add the docs link

  • fix: cleanup whitespace

Co-authored-by: tim775 52185+tim775@users.noreply.github.com

feat: add support for me-central-1, Middle East (UAE) region (#2001)

fix: detect vcs provider from remote if not provided (#2002)

  • fix: detect vcs provider from remote if not provided

Changes the metadata fetcher to set a vcs provider from the host if it has not been provided already. This is useful for deployment platforms like atlantis.

  • fix: vcs provider in test

docs: update screenshots

test(aws): Fix price hashes for China data transfer tests

The records with the price hashes swapped directions:

  • was: cn-north-1 -> cn-northwest-1 for c1bbbe...
  • now: cn-north-1 -> cn-northwest-1 for 3700bb...

and vice versa. The pricing is the same, so I'd consider this a safe change.

chore: Remove unused code for deprecated registration method

chore: update supported security patch versions

chore: add debug line on client requests (#2018)

adds debug line to log similar to following:

'POST' request to '/graphql' using trace_id: '4af66d3e-38a7-4ef6-85ee-0b327125eca2'

which means we can trace the cli run through the graphql server.

fix: Fix project name generation from complex URLs (#2016)

fix: filter repoMetadata from telemetry (#2020)

chore(deps): bump github.com/aws/aws-sdk-go-v2/service/autoscaling (#2021)

Bumps github.com/aws/aws-sdk-go-v2/service/autoscaling from 1.23.6 to 1.23.14.


updated-dependencies:

  • dependency-name: github.com/aws/aws-sdk-go-v2/service/autoscaling dependency-type: direct:production update-type: version-update:semver-patch ...

Signed-off-by: dependabot[bot] support@github.com

Signed-off-by: dependabot[bot] support@github.com Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Created at 1 day ago
issue comment
Add support for Pulumi

@alexanderniebuhr you can contribute to my branch if you would like. @alikhajeh1 provides the ETA, however you can build your own and use the stuff in ic-demo as an example.

Created at 4 days ago

fix: fix HCL parsing module regex (#1898)

  • Fixes for modules that contain the word 'module' by matching only 'module.' at the beginning or '.module.' in the middle of the resource address.
  • Fixes for_each and count support for submodules by making sure it only matches non [] characters inside [].

fix: halts panic when attribute has been redeclared as a child block (#1896)

  • fix: halts panic when attribute has been redeclared as a child block

fixes #1871

Resolves interface conversion panic when an block has an attribute which has been redeclared as a child block. This is an invalid state and would be incorrect Terraform, hence why we haven't encountered this problem before. We now handle this case by ignoring the child block definition and putting an entry into the debug log.

  • fix: debug line formatting

Co-authored-by: Alistair Scott ali.scott@gmail.com

Co-authored-by: Alistair Scott ali.scott@gmail.com

fix: panic on invalid hostname used in credential discovery for private modules (#1895)

  • fix: panic on invalid hostname used in credential discovery for private modules

Fixes: #1873

Resolves panic that originating from the github.com/hashicorp/terraform-svchost library because the host passed for credential discovery was invalid and could not be converted back to a string.

  • fix: debug line formatting

Co-authored-by: Alistair Scott ali.scott@gmail.com

Co-authored-by: Alistair Scott ali.scott@gmail.com

fix: protect cty conversion types against unknown types (#1888)

fixes #1876

Changes parser and hcl_provider files that were previously using AsString methods behind a switch statement to use the gocty.From function. This handles unknown types and won't panic if one is provided.

All other instances throughout the codebase (outside of the funcs package, which we don't tend to touch) use Attribute.AsString or Attribute.AsInt method which use the gocty conversion methods. I've also added additional conversion logic to the native cty functions and added additional null type checking.

This should resolve most cty panics moving forward.

Update dependabot.yml (#1897)

Make Dependabot update GitHub Actions.

enhance: Update org level enable_cloud setting to apply to all command (#1880)

  • enhance: Update org level enable_cloud setting to apply to all command

  • refactor: use correct logger

  • test: override default test setting of EnableCloud = false

chore(deps): bump github.com/Rhymond/go-money from 1.0.7 to 1.0.8 (#1907)

Bumps github.com/Rhymond/go-money from 1.0.7 to 1.0.8.


updated-dependencies:

  • dependency-name: github.com/Rhymond/go-money dependency-type: direct:production update-type: version-update:semver-patch ...

Signed-off-by: dependabot[bot] support@github.com

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

fix: aws_codebuild_project with invalid ComputeType causes index panic (#1894)

  • fix: aws_codebuild_project with invalid ComputeType causes index panic

Resolves issue where an environment.compute_type having an unexpected format caused a panic. We now return a blank string for the name label if the compute_type is invalid.

  • fix: unclosed parethensis in compute_type label

  • fix: mark as skipped if compute_type is invalid

chore(deps): bump github.com/aws/aws-sdk-go-v2/config (#1914)

Bumps github.com/aws/aws-sdk-go-v2/config from 1.15.13 to 1.15.14.


updated-dependencies:

  • dependency-name: github.com/aws/aws-sdk-go-v2/config dependency-type: direct:production update-type: version-update:semver-patch ...

Signed-off-by: dependabot[bot] support@github.com

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

chore(deps): bump github.com/aws/aws-sdk-go-v2/service/ec2 (#1909)

Bumps github.com/aws/aws-sdk-go-v2/service/ec2 from 1.47.2 to 1.50.0.


updated-dependencies:

  • dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2 dependency-type: direct:production update-type: version-update:semver-minor ...

Signed-off-by: dependabot[bot] support@github.com

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

chore(deps): bump github.com/aws/aws-sdk-go-v2/service/cloudwatch (#1910)

Bumps github.com/aws/aws-sdk-go-v2/service/cloudwatch from 1.18.6 to 1.19.0.


updated-dependencies:

  • dependency-name: github.com/aws/aws-sdk-go-v2/service/cloudwatch dependency-type: direct:production update-type: version-update:semver-minor ...

Signed-off-by: dependabot[bot] support@github.com

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

fix: ignore env vars NAME and EXCLUDE_PATHS

Fixes an issue where if a user has the env var NAME set then it overrides the project name in the config file

refactor: use envconfig's prefix arg

This means if we forget to ignore env variables for config values in the future, at least they'll be scoped to the INFRACOST_ prefix.

chore(deps): bump github.com/hashicorp/go-getter from 1.6.1 to 1.6.2

Bumps github.com/hashicorp/go-getter from 1.6.1 to 1.6.2.


updated-dependencies:

  • dependency-name: github.com/hashicorp/go-getter dependency-type: direct:production update-type: version-update:semver-patch ...

Signed-off-by: dependabot[bot] support@github.com

chore(deps): bump github.com/hashicorp/go-version from 1.5.0 to 1.6.0

Bumps github.com/hashicorp/go-version from 1.5.0 to 1.6.0.


updated-dependencies:

  • dependency-name: github.com/hashicorp/go-version dependency-type: direct:production update-type: version-update:semver-minor ...

Signed-off-by: dependabot[bot] support@github.com

chore(deps): bump github.com/open-policy-agent/opa from 0.42.0 to 0.42.2

Bumps github.com/open-policy-agent/opa from 0.42.0 to 0.42.2.


updated-dependencies:

  • dependency-name: github.com/open-policy-agent/opa dependency-type: direct:production update-type: version-update:semver-patch ...

Signed-off-by: dependabot[bot] support@github.com

fix: fix references for aws_ecs_service to aws_ecs_task_definition with the family attribute (#1917)

  • fix: fix references for aws_ecs_service to aws_ecs_task_definition with the family attribute

This uses the CustomRefIDFunc functionality to create the correct reference. Since family isn't really an ID, I added a check in the aws_ecs_service resource to make sure that the returned resource data type is an aws_ecs_task_definition.

I'm not sure if we have a current way of locking references to an expected target type and attribute. If not, it's probably something we want to explore in the future, or work out automatically based on the HCL.

  • Update internal/providers/terraform/aws/ecs_task_definition.go

Co-authored-by: Tim McFadden 52185+tim775@users.noreply.github.com

Co-authored-by: Tim McFadden 52185+tim775@users.noreply.github.com

gha: bump docker/metadata-action from 3 to 4 (#1901)

Bumps docker/metadata-action from 3 to 4.


updated-dependencies:

  • dependency-name: docker/metadata-action dependency-type: direct:production update-type: version-update:semver-major ...

Signed-off-by: dependabot[bot] support@github.com

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

gha: bump actions/checkout from 2 to 3 (#1902)

Bumps actions/checkout from 2 to 3.


updated-dependencies:

  • dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ...

Signed-off-by: dependabot[bot] support@github.com

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

gha: bump actions/setup-node from 2 to 3 (#1903)

Bumps actions/setup-node from 2 to 3.


updated-dependencies:

  • dependency-name: actions/setup-node dependency-type: direct:production update-type: version-update:semver-major ...

Signed-off-by: dependabot[bot] support@github.com

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Created at 4 days ago

Adding in changelog

Created at 5 days ago
pull request opened
Small patch to ours/theirs reference in go sdk

Description

Fixes # (issue)

Checklist

  • [ ] I have added tests that prove my fix is effective or that my feature works
  • [ ] I have run make changelog and committed the changelog/pending/<file> documenting my change
  • [ ] Yes, there are changes in this PR that warrants bumping the Pulumi Service API version
Created at 5 days ago

Small patch to ours/theirs reference

Created at 5 days ago
create branch
rshade create branch ours-theirs
Created at 5 days ago
rshade delete branch rshade/markdownlint
Created at 5 days ago

Markdownlint

Merge pull request #92 from pulumi/rshade/markdownlint

Markdownlint

Created at 5 days ago
Markdownlint
Created at 5 days ago
rshade delete branch rshade/shim-docs
Created at 5 days ago

Adding in shim pattern

Merge pull request #91 from pulumi/rshade/shim-docs

Adding in shim pattern

Created at 5 days ago
Adding in shim pattern
Created at 5 days ago
issue comment
sdk/go: Enable unsafe await of Output values in Go SDK

Should we throw a warn on pulumi preview to manually dependency map?

Created at 6 days ago
Markdownlint
Created at 6 days ago
rshade create branch rshade/markdownlint
Created at 6 days ago
Adding in shim pattern
Created at 6 days ago
rshade create branch rshade/shim-docs
Created at 6 days ago
issue comment
Use StackReferences without ApplyT

Current Behaviour

privateSubnets := vpc.GetOutput(pulumi.String("privateSubnetIds")).ApplyT(
			func(subnets []interface{}) []string {
				var s []string
				for _, subnet := range subnets {
					s = append(s, subnet.(string))
				}
				return s
			},
		).(pulumi.StringArrayOutput)

Proposed, if we have to lightly typecast it on harder types that is ok, but should be documented:

privateSubnets := vpc.GetOutput(pulumi.String("privateSubnetIds")).(pulumi.StringArrayOutput)
Created at 6 days ago

updating builds

Created at 1 week ago
rshade delete branch rshade/tfgen-updates
Created at 1 week ago
pull request opened
adding shim
Created at 1 week ago
rshade create branch rshade/tfgen-updates
Created at 1 week ago
opened issue
Use StackReferences without ApplyT

Hello!

  • Vote on this issue by adding a 👍 reaction
  • If you want to implement this feature, comment to let us know (we'll work with you on design, scheduling, etc.)

Issue details

As stack references are always available to the pulumi program, I would like to use them without Apply. I think they should be automatically derived to their types.

Affected area/feature

Created at 1 week ago