Service Accounts
Setting up a dedicated service account for your CI/CD tool to access Duplocloud and the underlying cloud.
Last updated
Was this helpful?
Setting up a dedicated service account for your CI/CD tool to access Duplocloud and the underlying cloud.
Last updated
Was this helpful?
When using a dedicated security account for pipeline access, you must make it available to the pipelines.
To call the DuploCloud API from a job, obtain an . A good naming convention is to name it after the brand, so for Github just name the service account github
or gitlab
for Gitlab.
. Service Account users are usernames that are not an email address, such as github-bot
or my-api-user
. These users do not log in, but their account owns the API token.
Give the DuploCloud user access to the desired Tenant. See . You could give admin permissions as well.
Create an API token for that user. See .
Add a the following repository variables/secrets to the CI/CD environment.
DUPLO_HOST
The full url to the duplocloud portal
DUPLO_TOKEN
The API token from step 3
Duplocloud will use the AWS STS to provide credentials during a CI/CD workflow. No extra steps needed. The running job will assume the IAM role associated to the tenant using the duplocloud credentials.
.
Select the project.
.
In your CI/CD tool, you will save the following two variables. Navigate to the
Create a Secret named CLOUD_CREDENTIALS
with the contents pasted from the JSON credentials you downloaded from the Service Account.
Create a Variable named CLOUD_ACCOUNT
with the Project ID or Name from GCP.
The JSON Credentials file you download has the following content:
Create an Azure Security Account with needed permissions in Azure Entra ID.
The JSON Credential file has the following content:
Within your CI/CD tool create the following variables.
Create a Secret named CLOUD_CREDENTIALS
with the contents pasted from the json credentials you downloaded from the service account
Create a Variable named CLOUD_ACCOUNT
with the directory name for Azure.
Configure the variables mentioned in the steps above for your specific vendor. Foo Bar.
Documentation guides for getting started with BitBucket Pipelines
Documentation guides for getting started with Azure DevOps
Documentation guides for getting started using CI/CD with GitHub Actions
Documentation guides for getting started using CI/CD with CircleCI
Documentation guides for getting started using CI/CD with GitLab CI/CD
Documentation guides for getting started using CI/CD with Katkit