Git Product home page Git Product logo

Comments (7)

chamcca avatar chamcca commented on May 23, 2024

are you able to get the complete logs from the codebuild execution?

from aws-orbit-workbench.

chamcca avatar chamcca commented on May 23, 2024

did you actually install the foundation or did you use existing vpcs, subnets, etc? I was able to reproduce the cdk hangup and have determined the cause, but the same issue would have affected the foundation deployment as well as the env deployment.

from aws-orbit-workbench.

AllOtherUserNamesTaken avatar AllOtherUserNamesTaken commented on May 23, 2024

@chamcca you are correct I had to use existing VPCs and subnets, so I didn't run the foundation. There aren't additional logs, it just hangs.

I followed the guideline:
"If the above is defined, then you can populate the manifest with these values, removing the need to deploy a separate foundation."

The generated manifest file has this layout (I can't spot an issue with it):

{
   "AccountId":"0000000000",
   "CdkToolkit":{
      "S3Bucket":"orbit-f-orbit-cdk-toolkit-0000000000-vtbduy",
      "StackName":"orbit-f-orbit-cdk-toolkit"
   },
   "CodeartifactDomain":null,
   "CodeartifactRepository":null,
   "CognitoExternalProviderDomain":null,
   "CognitoExternalProviderRedirect":null,
   "CognitoUsersUrl":null,
   "EnvTag":"orbit-f-orbit",
   "Images":{
      "CodeBuild":{
         "Path":null,
         "Repository":"public.ecr.aws/0000000000/aws-codeseeder/code-build-base",
         "Version":"2.0.0"
      }
   },
   "IsCodeartifactExternal":null,
   "Name":"orbit",
   "Networking":{
      "AvailabilityZones":[
         "eu-central-1a",
         "eu-central-1b"
      ],
      "Data":{
         "InternetAccessible":false,
         "NodesSubnets":[
            "subnet-0000000000",
            "subnet-0000000000"
         ]
      },
      "Frontend":{
         "CustomDomainName":null,
         "LoadBalancersSubnets":[
            "subnet-111111111",
            "subnet-111111111"
         ],
         "SslCertArn":null
      },
      "IsolatedSubnets":[

      ],
      "MaxAvailabilityZones":null,
      "PrivateSubnets":[
         {
            "AvailabilityZone":"eu-central-1a",
            "CidrBlock":"10.10.9.0/21",
            "Kind":"private",
            "RouteTableId":"rtb-0000000000",
            "SubnetId":"subnet-0000000000",
            "VpcId":"vpc-0000000000"
         },
         {
            "AvailabilityZone":"eu-central-1b",
            "CidrBlock":"10.10.9.0/21",
            "Kind":"private",
            "RouteTableId":"rtb-0000000000",
            "SubnetId":"subnet-0000000000",
            "VpcId":"vpc-0000000000"
         }
      ],
      "PublicSubnets":[
         {
            "AvailabilityZone":"eu-central-1b",
            "CidrBlock":"10.10.40.20/28",
            "Kind":"public",
            "RouteTableId":"rtb-111111111",
            "SubnetId":"subnet-111111111",
            "VpcId":"vpc-0000000000"
         },
         {
            "AvailabilityZone":"eu-central-1a",
            "CidrBlock":"00.04.04.24/28",
            "Kind":"public",
            "RouteTableId":"rtb-111111111",
            "SubnetId":"subnet-111111111",
            "VpcId":"vpc-0000000000"
         }
      ],
      "SecondaryCidr":false,
      "VpcCidrBlock":"10.20.11.000/27",
      "VpcId":"vpc-0000000000"
   },
   "OrbitVersion":"1.6.0.dev0",
   "Policies":[

   ],
   "Region":"eu-central-1",
   "ResourcesSsmParameterName":"/orbit-f/orbit/resources",
   "RolePrefix":null,
   "ScratchBucketArn":null,
   "SsmParameterName":"/orbit-f/orbit/context",
   "StackName":"orbit-f-orbit",
   "Toolkit":{
      "AdminRole":"orbit-f-orbit-eu-central-1-admin",
      "AdminRoleArn":"arn:aws:iam::0000000000:role/orbit-f-orbit-eu-central-1-admin",
      "CodeartifactDomain":"aws-codeseeder-orbit",
      "CodeartifactRepo":"python-repository",
      "CodebuildProject":"codeseeder-orbit",
      "CodeseederPolicy":"arn:aws:iam::0000000000:policy/codeseeder-orbit-eu-central-1-resources",
      "DeployId":"vtbduy",
      "KmsAlias":null,
      "KmsArn":"arn:aws:kms:eu-central-1:0000000000:key/0000000000-b691-4992-be04-0000000000",
      "S3Bucket":"codeseeder-orbit-0000000000-qqqqq",
      "StackName":"orbit-f-orbit-toolkit"
   },
   "UserPoolId":null
}

from aws-orbit-workbench.

bozethe avatar bozethe commented on May 23, 2024

@[chamcca]I have the same issue as well but my deployment get stack at foundation stage. It just stack on below stage (/remote_files/cdk/foundation.py ).

[2022-07-12 16:32:52,007][deploy.py :337] CDK Toolkit Stack deployed

578 | [2022-07-12 16:32:52,007][foundation.py: 34] Deploying self signed cert...
579 | [2022-07-12 16:32:52,007][cert.py : 35] Generating self-signed certificate...
580 | [2022-07-12 16:32:52,007][cert.py : 37] Creating private key...
581 | [2022-07-12 16:32:52,158][cert.py : 41] Creating Certificate signing request...
582 | [2022-07-12 16:32:52,166][cert.py : 49] Creating Public certificate...
583 | [2022-07-12 16:32:52,172][cert.py : 59] Uploading the cert to IAM...
584 | [2022-07-12 16:32:52,698][foundation.py: 37] Deploying orbit-f-dev-env Foundation...
585 | [2022-07-12 16:32:52,698][sh.py : 28] + cdk deploy --require-approval never --progress events --toolkit-stack-name orbit-f-dev-env-cdk-toolkit --app "python /root/.venv/lib/python3.7/site-packages/aws_orbit/remote_files/cdk/foundation.py dev-env arn:aws:iam::903917712828:server-certificate/dev-env-eu-west-1" --output .orbit.out/dev-env/cdk/orbit-f-dev-env

from aws-orbit-workbench.

chamcca avatar chamcca commented on May 23, 2024

I've tracked this down to an incompatibility between the version of the CDK used for deployment and newer versions of the jsii library. with jsii > 1.60.0 the CDK cli will hang indefinitely. I was able to deploy by adding the following lines to the cli/remote-requirements.txt file:

constructs~=3.3.161
jsii~=1.42.0

I'll be issuing a PR with update later today after some additional testing and discussion with the team on cutting a patch release.

from aws-orbit-workbench.

AllOtherUserNamesTaken avatar AllOtherUserNamesTaken commented on May 23, 2024

Thank you @chamcca we have also verified that this allowed progress.

from aws-orbit-workbench.

bozethe avatar bozethe commented on May 23, 2024

Thanks @chamcca. Adding constructs and jsii fixed the problem.

from aws-orbit-workbench.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.