# Note that "terraform-action" attribute value should be "apply"
# USER_INPUT_CDS_PY_EXEC_POD_IP : Use below command to get the CDS pyexecutor IP
# kubectl get pods -n onap -o wide | grep dev-cds-py-executor | awk '{print $6}'
# USER_INPUT_GIT_URL ex . "https://gitlab.com/api/v4"
# USER_INPUT_GIT_ACCESS_TOKEN - refer main readme to generate the git access token.
# USER_INPUT_GIT_PROJECT_ID : Git terraform project id. ex. 26901776
# USER_INPUT_GIT_BRANCH - git branch name ex. "development"
# USER_INPUT_GIT_DOWNLOAD_FOLDER - Always give "/opt/app/onap/blueprints/deploy"
# USER_INPUT_GIT_ARCHIVE_FILE_NAME - any tar file name ex. "terraform-plans-poc.tar.gz"
# USER_INPUT_TERRAFORM_VARS_FILE_NAME - override file from git project ex. "terraform.tfvars"
# USER_INPUT_TERRAFORM_PLAN_FOLDER - give correct git terraform plan folder name ex ."demo-azure-connectivity"
{
"commonHeader": {
"originatorId": "System",
"requestId": "123456",
"subRequestId": "1234-12234"
},
"actionIdentifiers": {
"blueprintName": "terraform-plan-executor",
"blueprintVersion": "1.0.0",
"actionName": "remote-python",
"mode": "sync"
},
"payload": {
"remote-python-request": {
"cds-py-exec-pod-ip": "USER_INPUT_CDS_PY_EXEC_POD_IP",
"git-url": "USER_INPUT_GIT_URL",
"git-access-token": "USER_INPUT_GIT_ACCESS_TOKEN",
"git-project-id": "USER_INPUT_GIT_PROJECT_ID",
"git-branch": "USER_INPUT_GIT_BRANCH",
"git-download-folder": "/opt/app/onap/blueprints/deploy",
"git-archive-file-name": "USER_INPUT_GIT_ARCHIVE_FILE_NAME",
"terraform-var-file-name": "USER_INPUT_TERRAFORM_VARS_FILE_NAME",
"terraform-plan-folder": "USER_INPUT_TERRAFORM_PLAN_FOLDER",
"terraform-variable-override": {
"USER_INPUT_VAR_NAME_1": "USER_INPUT_VAR_VALUE_1",
"USER_INPUT_VAR_NAME_2": "USER_INPUT_VAR_VALUE_2"
},
"terraform-environment-variables": {
"ARM_SUBSCRIPTION_ID": "USER_INPUT_ARM_SUBSCRIPTION_ID",
"ARM_CLIENT_ID": "USER_INPUT_ARM_CLIENT_ID",
"ARM_CLIENT_SECRET": "USER_INPUT_ARM_CLIENT_SECRET",
"ARM_TENANT_ID": "USER_INPUT_ARM_TENANT_ID",
"ARM_ACCESS_KEY": "USER_INPUT_ARM_ACCESS_KEY"
},
"terraform-action": "apply",
"terraform-workspace-name": "USER_INPUT_TERRAFORM_WORKSPACE_NAME"
}
}
}
{
"commonHeader": {
"originatorId": "System",
"requestId": "123456",
"subRequestId": "1234-12234"
},
"actionIdentifiers": {
"blueprintName": "terraform-plan-executor",
"blueprintVersion": "1.0.0",
"actionName": "remote-python",
"mode": "sync"
},
"payload": {
"remote-python-request": {
"cds-py-exec-pod-ip": "USER_INPUT_CDS_PY_EXEC_POD_IP",
"git-url": "USER_INPUT_GIT_URL",
"git-access-token": "USER_INPUT_GIT_ACCESS_TOKEN",
"git-project-id": "USER_INPUT_GIT_PROJECT_ID",
"git-branch": "USER_INPUT_GIT_BRANCH",
"git-archive-file-name": "USER_INPUT_GIT_ARCHIVE_FILE_NAME",
"git-download-folder": "USER_INPUT_GIT_DOWNLOAD_FOLDER",
"terraform-plan-folder": "USER_INPUT_TERRAFORM_PLAN_FOLDER",
"terraform-var-file-name": "USER_INPUT_TERRAFORM_VARS_FILE_NAME",
"terraform-environment-variables": {
},
"terraform-variable-override": {
equinix_client_id": "USER_INPUT_EQUINIX_CLIENT_ID",
"equinix_client_secret": "USER_INPUT_EQUINIX_CLIENT_SECRET",
"equinix_port_name": "USER_INPUT_EQUINIX_PORT_NAME",
"aws_access_key": "USER_INPUT_AWS_ACCESS_KEY",
"aws_secret_key": "USER_INPUT_AWS_SECRET_KEY",
"aws_region": "USER_INPUT_AWS_REGION",
"aws_metro_code":"USER_INPUT_AWS_METRO_CODE",
"aws_account_id":"USER_INPUT_AWS_ACCOUNT_ID"
},
"terraform-action": "apply",
"terraform-workspace-name": "USER_INPUT_TERRAFORM_WORKSPACE_NAME"
}
}
}
{
"commonHeader": {
"originatorId": "System",
"requestId": "123456",
"subRequestId": "1234-12234"
},
"actionIdentifiers": {
"blueprintName": "terraform-plan-executor",
"blueprintVersion": "1.0.0",
"actionName": "remote-python",
"mode": "sync"
},
"payload": {
"remote-python-request": {
"cds-py-exec-pod-ip": "USER_INPUT_CDS_PY_EXEC_POD_IP",
"git-url": "USER_INPUT_GIT_URL",
"git-access-token": "USER_INPUT_GIT_ACCESS_TOKEN",
"git-project-id": "USER_INPUT_GIT_PROJECT_ID",
"git-branch": "USER_INPUT_GIT_BRANCH",
"git-archive-file-name": "USER_INPUT_GIT_ARCHIVE_FILE_NAME",
"git-download-folder": "USER_INPUT_GIT_DOWNLOAD_FOLDER",
"terraform-plan-folder": "USER_INPUT_TERRAFORM_PLAN_FOLDER",
"terraform-var-file-name": "USER_INPUT_TERRAFORM_VARS_FILE_NAME",
"terraform-environment-variables": {
"OS_AUTH_URL": "USER_INPUT_OS_AUTH_URL",
"OS_USERNAME": "USER_INPUT_OS_USERNAME",
"OS_PASSWORD": "USER_INPUT_OS_PASSWORD",
"OS_REGION_NAME": "USER_INPUT_OS_REGION_NAME",
"OS_PROJECT_NAME": "USER_INPUT_OS_PROJECT_NAME",
"OS_PROJECT_DOMAIN_NAME": "USER_INPUT_OS_PROJECT_DOMAIN_NAME",
"OS_USER_DOMAIN_NAME": "USER_INPUT_OS_USER_DOMAIN_NAME",
"OS_IDENTITY_API_VERSION": "USER_INPUT_OS_IDENTITY_API_VERSION"
},
"terraform-variable-override": {
"USER_INPUT_VARIABLE_NAME": "USER_INPUT_VARIABLE_VALUE"
},
"terraform-action": "apply",
"terraform-workspace-name": "USER_INPUT_TERRAFORM_WORKSPACE_NAME"
}
}
}
|