Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
aws codepipeline get-pipeline --name XXX
{
"pipeline": {
"name": "sher2-pipeline",
"roleArn": "arn:aws:iam::00000000:role/sher2-us-west-2-pipeline",
"artifactStore": {
"type": "S3",
"location": "sher2-00000000-us-west-2-pipeline"
},
"stages": [
{
"name": "Source",
"actions": [
{
"name": "SUBPROJECT_NAMECode",
"actionTypeId": {
"category": "Source",
"owner": "ThirdParty",
"provider": "GitHub",
"version": "1"
},
"runOrder": 1,
"configuration": {
"Branch": "main",
"OAuthToken": "****",
"Owner": "PROJECT_NAME",
"PollForSourceChanges": "false",
"Repo": "SUBPROJECT_NAME-code"
},
"outputArtifacts": [
{
"name": "SUBPROJECT_NAMECode"
}
],
"inputArtifacts": []
},
{
"name": "INTERNAL_PRODUCT_NAMEUploader",
"actionTypeId": {
"category": "Source",
"owner": "ThirdParty",
"provider": "GitHub",
"version": "1"
},
"runOrder": 1,
"configuration": {
"Branch": "oidc-integration",
"OAuthToken": "****",
"Owner": "PROJECT_NAME",
"PollForSourceChanges": "false",
"Repo": "fhir-works-on-aws-INTERNAL_PRODUCT_NAME-uploader"
},
"outputArtifacts": [
{
"name": "INTERNAL_PRODUCT_NAMEUploader"
}
],
"inputArtifacts": []
},
{
"name": "INTERNAL_PRODUCT_NAMEOIDCProvider",
"actionTypeId": {
"category": "Source",
"owner": "ThirdParty",
"provider": "GitHub",
"version": "1"
},
"runOrder": 1,
"configuration": {
"Branch": "main",
"OAuthToken": "****",
"Owner": "PROJECT_NAME",
"PollForSourceChanges": "false",
"Repo": "INTERNAL_PRODUCT_NAME-oidc-provider"
},
"outputArtifacts": [
{
"name": "INTERNAL_PRODUCT_NAMEOIDCProvider"
}
],
"inputArtifacts": []
}
]
},
{
"name": "Build",
"actions": [
{
"name": "INTERNAL_PRODUCT_NAMEUploaderBuild",
"actionTypeId": {
"category": "Build",
"owner": "AWS",
"provider": "CodeBuild",
"version": "1"
},
"runOrder": 1,
"configuration": {
"PrimarySource": "INTERNAL_PRODUCT_NAMEUploader",
"ProjectName": "sher2-INTERNAL_PRODUCT_NAMEUploader"
},
"outputArtifacts": [
{
"name": "BuiltINTERNAL_PRODUCT_NAMEUploader"
}
],
"inputArtifacts": [
{
"name": "SUBPROJECT_NAMECode"
},
{
"name": "INTERNAL_PRODUCT_NAMEUploader"
}
]
},
{
"name": "INTERNAL_PRODUCT_NAMEOIDCProviderBuild",
"actionTypeId": {
"category": "Build",
"owner": "AWS",
"provider": "CodeBuild",
"version": "1"
},
"runOrder": 1,
"configuration": {
"PrimarySource": "INTERNAL_PRODUCT_NAMEOIDCProvider",
"ProjectName": "sher2-INTERNAL_PRODUCT_NAMEUploader"
},
"outputArtifacts": [
{
"name": "BuiltINTERNAL_PRODUCT_NAMEOIDCProvider"
}
],
"inputArtifacts": [
{
"name": "INTERNAL_PRODUCT_NAMEOIDCProvider"
}
]
}
]
},
{
"name": "CognitoDeploy",
"actions": [
{
"name": "GenerateChangeSets",
"actionTypeId": {
"category": "Deploy",
"owner": "AWS",
"provider": "CloudFormation",
"version": "1"
},
"runOrder": 1,
"configuration": {
"ActionMode": "CHANGE_SET_REPLACE",
"Capabilities": "CAPABILITY_NAMED_IAM",
"ChangeSetName": "pipeline-cognito-changeset",
"RoleArn": "arn:aws:iam::00000000:role/sher2-CloudFormationRole-U70SYSLKK8GU",
"StackName": "sher2-cog",
"TemplatePath": "BuiltINTERNAL_PRODUCT_NAMEUploader::cognito-template-export.yml"
},
"outputArtifacts": [],
"inputArtifacts": [
{
"name": "BuiltINTERNAL_PRODUCT_NAMEUploader"
}
]
},
{
"name": "ExecuteChangeSet",
"actionTypeId": {
"category": "Deploy",
"owner": "AWS",
"provider": "CloudFormation",
"version": "1"
},
"runOrder": 2,
"configuration": {
"ActionMode": "CHANGE_SET_EXECUTE",
"ChangeSetName": "pipeline-cognito-changeset",
"OutputFileName": "cognito-deploy-output.json",
"StackName": "sher2-cog"
},
"outputArtifacts": [
{
"name": "DeployedCognito"
}
],
"inputArtifacts": []
}
]
},
{
"name": "INTERNAL_PRODUCT_NAMEOIDCProviderDeploy",
"actions": [
{
"name": "GenerateChangeSets",
"actionTypeId": {
"category": "Deploy",
"owner": "AWS",
"provider": "CloudFormation",
"version": "1"
},
"runOrder": 1,
"configuration": {
"ActionMode": "CHANGE_SET_REPLACE",
"Capabilities": "CAPABILITY_NAMED_IAM",
"ChangeSetName": "pipeline-oidc-changeset",
"ParameterOverrides": "{\n \"OIDCClientId\": \"cognito_test\",\n \"OIDCSecret\": \"cognito_secret\",\n \"OIDCRedirectUri\": { \"Fn::GetParam\" : [ \"DeployedCognito\", \"cognito-deploy-output.json\", \"CloudDataHubReturnURL\" ] },\n \"OIDCResponseType\": \"code\",\n \"OIDCGrantType\": \"authorization_code\",\n \"INTERNAL_PRODUCT_NAMEApiEndpoint\": \"https://test6serviceseu1.INTERNAL_PRODUCT_NAME.com/api/R18\",\n \"INTERNAL_PRODUCT_NAMEApiSessions\": \"/sessions\",\n \"INTERNAL_PRODUCT_NAMEApiUsers\": \"/users\",\n \"INTERNAL_PRODUCT_NAMEClientId\": \"TestClient\",\n \"INTERNAL_PRODUCT_NAMEAppName\": \"TestClient\",\n \"INTERNAL_PRODUCT_NAMEAppVersion\": \"1.0.0\"\n}\n",
"RoleArn": "arn:aws:iam::00000000:role/sher2-CloudFormationRole-U70SYSLKK8GU",
"StackName": "sher2-oidc-provider",
"TemplatePath": "BuiltINTERNAL_PRODUCT_NAMEOIDCProvider::template-export.yml"
},
"outputArtifacts": [],
"inputArtifacts": [
{
"name": "BuiltINTERNAL_PRODUCT_NAMEOIDCProvider"
},
{
"name": "DeployedCognito"
}
]
},
{
"name": "ExecuteChangeSet",
"actionTypeId": {
"category": "Deploy",
"owner": "AWS",
"provider": "CloudFormation",
"version": "1"
},
"runOrder": 2,
"configuration": {
"ActionMode": "CHANGE_SET_EXECUTE",
"ChangeSetName": "pipeline-oidc-changeset",
"OutputFileName": "oidc-provider-output.json",
"StackName": "sher2-oidc-provider"
},
"outputArtifacts": [
{
"name": "DeployedINTERNAL_PRODUCT_NAMEOIDCProvider"
}
],
"inputArtifacts": []
}
]
},
{
"name": "CognitoIDPDeploy",
"actions": [
{
"name": "GenerateChangeSets",
"actionTypeId": {
"category": "Deploy",
"owner": "AWS",
"provider": "CloudFormation",
"version": "1"
},
"runOrder": 1,
"configuration": {
"ActionMode": "CHANGE_SET_REPLACE",
"Capabilities": "CAPABILITY_NAMED_IAM",
"ChangeSetName": "pipeline-cognito-idp-changeset",
"ParameterOverrides": "{\n \"CloudDataHubUserPool\": { \"Fn::GetParam\" : [ \"DeployedCognito\", \"cognito-deploy-output.json\", \"CloudDataHubUserPoolId\" ] },\n \"INTERNAL_PRODUCT_NAMEOIDCIssuer\": { \"Fn::GetParam\" : [ \"DeployedINTERNAL_PRODUCT_NAMEOIDCProvider\", \"oidc-provider-output.json\", \"ProviderApi\" ] },\n \"INTERNAL_PRODUCT_NAMEOIDCClientId\": \"cognito_test\",\n \"INTERNAL_PRODUCT_NAMEOIDCSecret\": \"cognito_secret\",\n \"INTERNAL_PRODUCT_NAMEOIDCLogoutURL\": \"http://localhost:8000/EMPLOYEE_NAME-idp.html\",\n \"INTERNAL_PRODUCT_NAMEOIDCCallbackURL\": \"http://localhost:8000/EMPLOYEE_NAME-idp.html\",\n \"INTERNAL_PRODUCT_NAMEOIDCScopes\": \"profile openid email cdh INTERNAL_PRODUCT_NAME\"\n}\n",
"RoleArn": "arn:aws:iam::00000000:role/sher2-CloudFormationRole-U70SYSLKK8GU",
"StackName": "sher2-cog-idp",
"TemplatePath": "BuiltINTERNAL_PRODUCT_NAMEUploader::cognito-idp-template-export.yml"
},
"outputArtifacts": [],
"inputArtifacts": [
{
"name": "BuiltINTERNAL_PRODUCT_NAMEUploader"
},
{
"name": "DeployedINTERNAL_PRODUCT_NAMEOIDCProvider"
},
{
"name": "DeployedCognito"
}
]
},
{
"name": "ExecuteChangeSet",
"actionTypeId": {
"category": "Deploy",
"owner": "AWS",
"provider": "CloudFormation",
"version": "1"
},
"runOrder": 2,
"configuration": {
"ActionMode": "CHANGE_SET_EXECUTE",
"ChangeSetName": "pipeline-cognito-idp-changeset",
"OutputFileName": "cognito-idp-deploy-output.json",
"StackName": "sher2-cog-idp"
},
"outputArtifacts": [
{
"name": "DeployedCognitoIDP"
}
],
"inputArtifacts": []
}
]
},
{
"name": "UploaderDeploy",
"actions": [
{
"name": "GenerateChangeSets",
"actionTypeId": {
"category": "Deploy",
"owner": "AWS",
"provider": "CloudFormation",
"version": "1"
},
"runOrder": 1,
"configuration": {
"ActionMode": "CHANGE_SET_REPLACE",
"Capabilities": "CAPABILITY_NAMED_IAM",
"ChangeSetName": "pipeline-changeset",
"RoleArn": "arn:aws:iam::00000000:role/sher2-CloudFormationRole-U70SYSLKK8GU",
"StackName": "sher2-uploader",
"TemplatePath": "BuiltINTERNAL_PRODUCT_NAMEUploader::template-export.yml"
},
"outputArtifacts": [],
"inputArtifacts": [
{
"name": "BuiltINTERNAL_PRODUCT_NAMEUploader"
}
]
},
{
"name": "ExecuteChangeSet",
"actionTypeId": {
"category": "Deploy",
"owner": "AWS",
"provider": "CloudFormation",
"version": "1"
},
"runOrder": 2,
"configuration": {
"ActionMode": "CHANGE_SET_EXECUTE",
"ChangeSetName": "pipeline-changeset",
"StackName": "sher2-uploader"
},
"outputArtifacts": [],
"inputArtifacts": []
}
]
}
],
"version": 6
},
"metadata": {
"pipelineArn": "arn:aws:codepipeline:us-west-2:00000000:sher2-pipeline",
"created": "2021-05-31T16:39:22.563000+03:00",
"updated": "2021-06-01T21:20:30.303000+03:00"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment