Skip to content

Instantly share code, notes, and snippets.

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");
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;
@desiby
desiby / webserver.yaml
Created February 15, 2021 15:59
scalable web server
AWSTemplateFormatVersion: 2010-09-09
Description: Sample Nginx scalable webserver
Parameters:
VpcCidrBlock:
Description: VPC cidr block
Type: String
Default: 192.168.0.0/20