mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-08 21:34:25 +00:00
fix(cloud-init): quick review of examples
This commit is contained in:
@@ -66,6 +66,7 @@ const userData = new cloudinit.Config(
|
|||||||
base64Encode: true,
|
base64Encode: true,
|
||||||
parts: [
|
parts: [
|
||||||
{
|
{
|
||||||
|
// only useful on minimal al2023 base images or other images with no aws-ssm
|
||||||
contentType: "text/cloud-config",
|
contentType: "text/cloud-config",
|
||||||
content: yaml.stringify({
|
content: yaml.stringify({
|
||||||
package_upgrade: false,
|
package_upgrade: false,
|
||||||
@@ -98,7 +99,7 @@ new aws.ec2.Instance(
|
|||||||
keyName: keyPair.apply(keyPair => keyPair.keyName!),
|
keyName: keyPair.apply(keyPair => keyPair.keyName!),
|
||||||
rootBlockDevice: {
|
rootBlockDevice: {
|
||||||
volumeType: "gp3",
|
volumeType: "gp3",
|
||||||
volumeSize: 10,
|
volumeSize: 20,
|
||||||
tags: {
|
tags: {
|
||||||
Description: "Instance root disk",
|
Description: "Instance root disk",
|
||||||
Name: "EC2 Instance Example",
|
Name: "EC2 Instance Example",
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
import * as acme from '@pulumiverse/acme';
|
import * as acme from '@pulumiverse/acme';
|
||||||
import * as aws from "@pulumi/aws";
|
import * as aws from "@pulumi/aws";
|
||||||
import * as cloudinit from "@pulumi/cloudinit";
|
import * as cloudinit from "@pulumi/cloudinit";
|
||||||
import * as command from "@pulumi/command"
|
import * as command from "@pulumi/command";
|
||||||
import * as fs from 'fs';
|
|
||||||
import * as pulumi from "@pulumi/pulumi";
|
import * as pulumi from "@pulumi/pulumi";
|
||||||
import * as tls from "@pulumi/tls";
|
import * as tls from "@pulumi/tls";
|
||||||
import * as yaml from "yaml";
|
import * as yaml from "yaml";
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
# Cloud init
|
# Cloud init
|
||||||
|
|
||||||
## Table of contents <!-- omit in toc -->
|
|
||||||
|
|
||||||
1. [TL;DR](#tldr)
|
1. [TL;DR](#tldr)
|
||||||
1. [Merge 2 or more files or parts](#merge-2-or-more-files-or-parts)
|
1. [Merge 2 or more files or parts](#merge-2-or-more-files-or-parts)
|
||||||
1. [Further readings](#further-readings)
|
1. [Further readings](#further-readings)
|
||||||
|
|||||||
Reference in New Issue
Block a user