Git Product home page Git Product logo

Comments (5)

antdking avatar antdking commented on May 27, 2024

Potentially related issue from the upstream TF provider: hashicorp/terraform-provider-aws#22473

from pulumi-aws.

rizaldim avatar rizaldim commented on May 27, 2024

Additional info, might be useful:

  • These CodeBuild projects were created using Terraform with Terraform AWS Provider version 4.27.0
  • I tried to set the project visiblity to public using AWS Console, just so that the project visibility is not empty, but it failed. The error was Unknown Operation UpdateProjectVisibility. So probably the operation is not supported in my region. I can't find anything mentioning this in the AWS docs.

from pulumi-aws.

t0yv0 avatar t0yv0 commented on May 27, 2024

Thank you for reporting this! My team will pick this up as time permits.

Additional context. In SDKv2 upstream this is defined as:

			"project_visibility": {
				Type:         schema.TypeString,
				Optional:     true,
				Default:      codebuild.ProjectVisibilityTypePrivate,
				ValidateFunc: validation.StringInSlice(codebuild.ProjectVisibilityType_Values(), false),
			},

But the default value is not propagated into the Pulumi schema for some reason.

ยป $schema rs aws:codebuild/project:Project schema inputProperties projectVisibility
description: |
    Specifies the visibility of the project's builds. Possible values are: `PUBLIC_READ` and `PRIVATE`. Default value is `PRIVATE`.
type: string

Theoretically not specifying projectVisibility should assume PRIVATE here, so pulumi up should work fine without having the projectVisibility specified.

from pulumi-aws.

rizaldim avatar rizaldim commented on May 27, 2024

Thanks @t0yv0 . Might I ask, what is that schema rs that you run? Is that part of pulumi schema command?

from pulumi-aws.

t0yv0 avatar t0yv0 commented on May 27, 2024

Ah sorry that's just some personal tool I've been working on (https://github.com/t0yv0/pus) to assist this kind of lookup; it's not yet really ready for public use. You can get roughly the same result out with jq over schema.json in the repo, drilling down into the Pulumi Package Schema files.

from pulumi-aws.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.