This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.mycompany.app; | |
import com.hashicorp.cdktf.App; | |
public class Main | |
{ | |
public static void main(String[] args) throws Exception { | |
final App app = new App(); | |
new BastionStack(app, "bastion-java-stack"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.mycompany.app; | |
import com.hashicorp.cdktf.TerraformHclModule; | |
import com.hashicorp.cdktf.TerraformOutput; | |
import com.hashicorp.cdktf.providers.aws.instance.Instance; | |
import com.hashicorp.cdktf.providers.aws.provider.AwsProvider; | |
import com.hashicorp.cdktf.providers.aws.security_group.SecurityGroup; | |
import com.hashicorp.cdktf.providers.aws.security_group.SecurityGroupEgress; | |
import com.hashicorp.cdktf.providers.aws.security_group.SecurityGroupIngress; | |
import software.constructs.Construct; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AWSTemplateFormatVersion: 2010-09-09 | |
Description: Sample Nginx scalable webserver | |
Parameters: | |
VpcCidrBlock: | |
Description: VPC cidr block | |
Type: String | |
Default: 192.168.0.0/20 |