refined-terabyte-65361
09/13/2021, 9:11 PMpulumi login <https://api.pulumi.com>
pulumi stack select --create dev
pulumi --stack dev up --diff --yes
deployment gets stuck in this state
+ pulumi:pulumi:Stack: (create)
i dont see any error when i enable verbose mode
I am not sure how pulumi console workssteep-toddler-94095
09/13/2021, 9:14 PMrefined-terabyte-65361
09/13/2021, 9:15 PM#!groovy
import groovy.transform.Field
@Field
def pulumiPod = '''
apiVersion: v1
kind: Pod
spec:
containers:
- name: main
image: pulumi/pulumi:v3.3.1
command:
- cat
tty: true
resources:
requests:
memory: "200Mi"
cpu: 100m
limits:
memory: "400Mi"
cpu: 100m
restartPolicy: Never
'''
pipeline {
agent {
kubernetes {
yaml pulumiPod
defaultContainer "main"
}
}
options {
disableConcurrentBuilds()
}
environment {
PULUMI_ACCESS_TOKEN = credentials("pulumi-credentials")
PULUMI_CONFIG_PASSPHRASE = credentials("pulumi-token")
AWS_ACCESS_KEY_ID = credentials("aws-key")
AWS_SECRET_ACCESS_KEY = credentials("aws-secret")
AWS_REGION = "us-west-2"
}
stages {
stage("Checkout Code") {
steps {
dir('pulumi'){
git(
branch: 'pulumi',
url: '<https://github.com/rajeshwer/ecr.git>'
)
}
}
}
stage('Setup') {
steps {
dir('/home/jenkins/agent/workspace/git/pulumi/deploy'){
sh """
npm install
pulumi login <https://api.pulumi.com>
"""
}
}
}
stage('Main') {
steps {
dir('/home/jenkins/agent/workspace/git/pulumi/deploy'){
withCredentials([aws(accessKeyVariable: 'AWS_ACCESS_KEY_ID', credentialsId: 'aws', secretKeyVariable: 'AWS_SECRET_ACCESS_KEY')]) {
// sh '''python -m pip install awscli'''
//sh '''sleep 1000 '''
sh '''aws s3 ls && pulumi stack select --create ping-s3 && pulumi --stack ping-s3 preview --diff && pulumi --stack ping-s3 up --diff --yes'''
//sh 'set -euo pipefail && python -m pip install awscli && ./../../shell/shell.sh'
}
}
}
}
}
}
steep-toddler-94095
09/13/2021, 9:18 PMrefined-terabyte-65361
09/13/2021, 9:21 PMsteep-toddler-94095
09/13/2021, 9:23 PMrefined-terabyte-65361
09/13/2021, 9:23 PMsteep-toddler-94095
09/13/2021, 9:29 PMrefined-terabyte-65361
09/13/2021, 9:30 PMsteep-toddler-94095
09/13/2021, 9:30 PMpulumi --stack ping-s3 preview --diff
isn't really necessary if you're doing a up --yes --diff
anywaysrefined-terabyte-65361
09/13/2021, 9:30 PMsteep-toddler-94095
09/13/2021, 9:31 PMup
? no issues with pulumi preview
or pulumi stack ls
refined-terabyte-65361
09/13/2021, 9:32 PMsteep-toddler-94095
09/13/2021, 9:34 PMpulumi up
on an already existing stack?refined-terabyte-65361
09/13/2021, 9:36 PMsteep-toddler-94095
09/13/2021, 9:36 PMrefined-terabyte-65361
09/13/2021, 9:38 PMsteep-toddler-94095
09/13/2021, 9:39 PMpulumi up
on an existing stack works? it's only an error when creating a new stack?refined-terabyte-65361
09/13/2021, 9:42 PMsteep-toddler-94095
09/13/2021, 9:56 PMbillowy-army-68599
09/13/2021, 11:05 PMresources:
requests:
memory: "200Mi"
cpu: 100m
limits:
memory: "400Mi"
cpu: 100m
refined-terabyte-65361
09/13/2021, 11:05 PM