-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run provider on Terraform Cloud #141
Labels
enhancement
New feature or request
Comments
The following Dockerfile can build a custom ARG TFC_AGENT_VERSION
FROM hashicorp/tfc-agent:${TFC_AGENT_VERSION}
USER root
RUN apt-get update && apt-get install -y --no-install-recommends \
curl \
gnupg \
ca-certificates \
apt-transport-https \
debsig-verify
# https://developer.1password.com/docs/cli/get-started/#step-1-install-1password-cli
RUN curl -sS https://downloads.1password.com/linux/keys/1password.asc | \
gpg --dearmor --output /usr/share/keyrings/1password-archive-keyring.gpg
RUN echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/1password-archive-keyring.gpg] https://downloads.1password.com/linux/debian/$(dpkg --print-architecture) stable main" | \
tee /etc/apt/sources.list.d/1password.list
RUN mkdir -p /etc/debsig/policies/AC2D62742012EA22/
RUN curl -sS https://downloads.1password.com/linux/debian/debsig/1password.pol | \
tee /etc/debsig/policies/AC2D62742012EA22/1password.pol
RUN mkdir -p /usr/share/debsig/keyrings/AC2D62742012EA22
RUN curl -sS https://downloads.1password.com/linux/keys/1password.asc | \
gpg --dearmor --output /usr/share/debsig/keyrings/AC2D62742012EA22/debsig.gpg
RUN apt-get update && apt-get install -y 1password-cli
RUN rm -rf /var/lib/apt/lists/*
USER tfc-agent |
To make this work on cloud and self hosted agents, you can use this workaround that we've been using on TFC for a long time now.
If you want a specific version, you can tweak as needed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Summary
With the latest stable version
v1.4.0
it's not possible to run the provider on Terraform Cloud.The attempt to fix it was done in v1.4.1-beta01, but requires additional efforts from the user to make it work. See details in this thead
The purpose of this issue to make the usage on Terraform Cloud smooth for the users and in the way that requires minimal efforts to run it.
Use cases
Run provider on Terraform Cloud.
Proposed solution
If the provider is running on the Terraform Cloud, install
op-cli
during provider initialization and use it. The minimum OP CLI version should bev2.23.0
.Is there a workaround to accomplish this today?
No
References & Prior Work
#116
The text was updated successfully, but these errors were encountered: