This file contains hidden or 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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | |
| <modelVersion>4.0.0</modelVersion> | |
| <groupId>com.example.kotlin_lambda_poc</groupId> | |
| <artifactId>kotlin_lambda_poc</artifactId> | |
| <version>1.0-SNAPSHOT</version> | |
| <packaging>jar</packaging> |
This file contains hidden or 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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | |
| <modelVersion>4.0.0</modelVersion> | |
| <groupId>com.example</groupId> | |
| <artifactId>kotlin_lambda_poc</artifactId> | |
| <version>1.0-SNAPSHOT</version> | |
| <packaging>jar</packaging> |
This file contains hidden or 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
| const stagingServer = new aws.ec2.Instance("staging-3dvation", { | |
| instanceType: serverSize, | |
| vpcSecurityGroupIds: [securityGroup.id], | |
| keyName: keyName, | |
| ami: serverType.id, | |
| }); | |
| const prodServer = new aws.ec2.Instance("prod-3dvation", { | |
| instanceType: serverSize, | |
| vpcSecurityGroupIds: [securityGroup.id], |
This file contains hidden or 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
| const securityGroup = new aws.ec2.SecurityGroup("3dvation-grp", { | |
| ingress: [ | |
| { | |
| description: "Inbound CNX for Staging and Prod Servers", | |
| protocol: "tcp", | |
| fromPort: 22, | |
| toPort: 22, | |
| cidrBlocks: ["0.0.0.0/0"], | |
| }, | |
| ], |
This file contains hidden or 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
| const serverType = pulumi.output( | |
| aws.ec2.getAmi({ | |
| filters: [ | |
| { | |
| name: "name", // filter by the name | |
| values: [ | |
| "ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20210430", // AMI Name from AWS > EC2 > Images > AMIs | |
| ], | |
| }, | |
| ], |
This file contains hidden or 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
| "use strict"; | |
| const pulumi = require("@pulumi/pulumi"); | |
| const aws = require("@pulumi/aws"); | |
| const serverSize = "t2.micro"; | |
| const config = new pulumi.Config(); | |
| const keyName = config.get("keyName"); | |
| const publicKey = config.get("publicKey"); |
This file contains hidden or 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
| # use default VPC and subnet | |
| data "aws_vpc" "default" { | |
| default = true | |
| } | |
| data "aws_subnet_ids" "all" { | |
| vpc_id = data.aws_vpc.default.id | |
| } |
This file contains hidden or 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
| #! /bin/bash | |
| main () { | |
| echo "Executing script..." | |
| run | |
| echo "Finished." | |
| } | |
| run () { |
This file contains hidden or 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
| import { Router, Route, Switch } from "react-router-dom"; | |
| import HomePage from "./pages/Home"; | |
| import AboutPage from "./pages/About"; | |
| import ProjectsPage from "./pages/Projects"; | |
| import BookPage from "./pages/Bookshelf"; | |
| import { Global } from "./styles/Global"; | |
| function App() { | |
| return ( |
This file contains hidden or 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
| import {Header} from "../components/Header"; | |
| import { Descriptors } from "../components/HomeMain"; | |
| import { formatOf } from "../components/extras/customFormatters"; | |
| import {PageSupportingContent} from "../components/PageSupportingContent"; | |
| import HomePageContent from "./contents/HomePageContents" | |
| import Footer from "../components/Footer"; | |
| import Container from "../styles/Global"; | |
| import Divider from "../components/extras/Divider"; | |
| const HomePage = () => { |
NewerOlder