pulumi / pulumi-yaml

YAML language provider for Pulumi
Apache License 2.0
39 stars 12 forks source link

Allow `docker:Image` as a resource for docker v4+ #421

Closed guineveresaenger closed 1 year ago

guineveresaenger commented 1 year ago

YAML workaround

To use Docker image resources, declare a default provider to use the v4 provider:

resources:
  docker-provider:
    type: pulumi:providers:docker
    defaultProvider: true
    options:
      version: 4.0.0-alpha.0

Refer to https://github.com/pulumi/pulumi-docker for the latest release version(s).


Currently we disallow Docker Image resource from being used with yaml.

As of pulumi-docker v4.0, this resource is schematized and therefore YAML compatible.

It was suggested we remove the error in favor of a warning, letting users know this resource will not work in YAML for pulumi-docker v3.x and lower.

AaronFriel commented 1 year ago

@guineveresaenger I've added workaround information to the top of this issue while I work on a change to address. That workaround isn't valid yet, but will be when the PR which adds an error message referencing it is merged.

aq17 commented 1 year ago

Fixed via https://github.com/pulumi/pulumi-yaml/pull/423