Hi, I upgrade each month our provider in order to sync with our terraform provider Today I wanted to...
a

Aurelie Vache

9 months ago
Hi, I upgrade each month our provider in order to sync with our terraform provider Today I wanted to upgrade it without success
# upgrade-provider ovh/pulumi-ovh
...
--- Plan Upgrade --- 
  - Planning Bridge Upgrade: v3.99.0 -> v3.101.0
    - git refs of
      - git: /usr/bin/git ls-remote --tags <https://github.com/pulumi/pulumi-terraform-bridge.git>
  - Planning Plugin SDK Upgrade: bridge v3.101.0 needs terraform-plugin-sdk v2.0.0-20240520223432-0c0bf0d65f10
  - Check if we should release a maintenance patch: Last provider release date: 2025-01-06T13:28:57Z
    - gh: /usr/bin/gh repo view ovh/pulumi-ovh --json=latestRelease
  - Planning Plugin Framework Upgrade: Up to date at 0.49.0
    - git refs of
      - git: /usr/bin/git ls-remote --tags <https://github.com/pulumi/pulumi-terraform-bridge>
--- done ---
--- Planning Java Gen Version Update --- 
  - Fetching latest Java Gen
    - Latest Release Version: of pulumi/pulumi-java: 1.0.0
      - gh: /usr/bin/gh repo view pulumi/pulumi-java --json=latestRelease
    - Stat
    - .pulumi-java-gen.version: 5 bytes read
    - Up to date at: 1.0.0
--- done ---
...
--- Tfgen & Build SDKs --- 
  - go: /usr/local/go/bin/go mod tidy
  - go: /usr/local/go/bin/go mod tidy
  - go: /usr/local/go/bin/go mod tidy
 -> make: /usr/bin/make tfgen
--- failed ---
error: exit status 2:
# <http://github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema|github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema>
/go/pkg/mod/github.com/pulumi/terraform-plugin-sdk/v2@v2.0.0-20240520223432-0c0bf0d65f10/helper/schema/grpc_provider.go:33:34: cannot use (*GRPCProviderServer)(nil) (value of type *GRPCProviderServer) as tfprotov5.ProviderServer value in variable declaration: *GRPCProviderServer does not implement tfprotov5.ProviderServer (missing method CloseEphemeralResource)
/go/pkg/mod/github.com/pulumi/terraform-plugin-sdk/v2@v2.0.0-20240520223432-0c0bf0d65f10/helper/schema/provider.go:526:9: cannot use NewGRPCProviderServer(p) (value of type *GRPCProviderServer) as tfprotov5.ProviderServer value in return statement: *GRPCProviderServer does not implement tfprotov5.ProviderServer (missing method CloseEphemeralResource)
make: *** [Makefile:67: tfgen] Error 1
Do you know how to solve this blocking issue? Thanks
Hi all, Trying to build and deploy a docker image via `awsx` but keep getting this error: ```docker-...
r

Roni

9 months ago
Hi all, Trying to build and deploy a docker image via
awsx
but keep getting this error:
docker-build:index:Image (forge-kernel):
    #0 building with "naughty_herschel" instance using docker-container driver
    
    #1 [internal] load build definition from Dockerfile
    #1 transferring dockerfile: 2.21kB done
    #1 DONE 0.0s
    
    #2 [internal] load metadata for public.ecr.aws/docker/library/python:3.10.16-slim
    #2 ERROR: failed to do request: Head "<https://public.ecr.aws/v2/docker/library/python/manifests/3.10.16-slim>": tls: failed to verify certificate: x509: certificate signed by unknown authority
    error: failed to solve: public.ecr.aws/docker/library/python:3.10.16-slim: failed to resolve source metadata for public.ecr.aws/docker/library/python:3.10.16-slim: failed to do request: Head "<https://public.ecr.aws/v2/docker/library/python/manifests/3.10.16-slim>": tls: failed to verify certificate: x509: certificate signed by unknown authority
This is the pulumi code:
ecr_repo = awsx.ecr.Repository(
    resource_name=f"{env}-research-kernel-repo",
    name=f"{env}-research-kernel-repo",
    force_delete=True)



image = awsx.ecr.Image(
    resource_name=f"{env}-research-kernel-image",
    # image_name=ecr_repo.url,
    context="src",
    dockerfile="./src/Dockerfile",
    image_name="forge-kernel",
    image_tag="0.1.0",
    # platform="linux/amd64",
    repository_url=ecr_repo.url,
)
when I build the image with docker cli, it works fine, but when I run the pulumi code, it fails... this is not my first Pulumi set up and everything else works fine. Dockerfile:
FROM public.ecr.aws/docker/library/python:3.10.16-slim


WORKDIR /app

COPY requirements.txt ./requirements.txt

RUN sudo apt-get update && sudo apt-get install --only-upgrade ca-certificates
RUN pip install --upgrade pip
RUN pip install --trusted-host <http://pypi.org|pypi.org> --trusted-host <http://files.pythonhosted.org|files.pythonhosted.org> -r ./requirements.txt


RUN python -m ipykernel install --sys-prefix --name forge-kernel --display-name "Python (forge-kernel)"