constructor()

in lib/stacks/cicd-stack.ts [24:45]


  constructor(scope: cdk.Construct, id: string, props: CICDStackProps) {
    super(scope, id, props);

    const jenkins = new JenkinsPattern(this, "jenkins", {
      vpc: props.vpc,
      allowAccessFrom: props.allowAccessFrom,
      backupBucket: props.backupBucket,
      ssmLoggingBucket: props.ssmLogBucket,
      artifactBucket: props.resourceBucket,
      buildNodeInstanceProfile: props.buildNodeInstanceProfile,
      buildNodeSecurityGroup: props.buildNodeSecurityGroup,
    });
    this.jenkinsInstance = jenkins.instance;

    new route53.ARecord(this, "jenkins-ip", {
      zone: props.zone,
      recordName: props.recordName,
      target: route53.RecordTarget.fromIpAddresses(
        jenkins.instance.instancePrivateIp
      ),
    });
  }