fix(cloud-init): quick review of examples

This commit is contained in:
Michele Cereda
2024-07-22 23:17:23 +02:00
parent 328ae1f775
commit ca8a9eaec1
3 changed files with 3 additions and 5 deletions

View File

@@ -66,6 +66,7 @@ const userData = new cloudinit.Config(
base64Encode: true,
parts: [
{
// only useful on minimal al2023 base images or other images with no aws-ssm
contentType: "text/cloud-config",
content: yaml.stringify({
package_upgrade: false,
@@ -98,7 +99,7 @@ new aws.ec2.Instance(
keyName: keyPair.apply(keyPair => keyPair.keyName!),
rootBlockDevice: {
volumeType: "gp3",
volumeSize: 10,
volumeSize: 20,
tags: {
Description: "Instance root disk",
Name: "EC2 Instance Example",

View File

@@ -1,8 +1,7 @@
import * as acme from '@pulumiverse/acme';
import * as aws from "@pulumi/aws";
import * as cloudinit from "@pulumi/cloudinit";
import * as command from "@pulumi/command"
import * as fs from 'fs';
import * as command from "@pulumi/command";
import * as pulumi from "@pulumi/pulumi";
import * as tls from "@pulumi/tls";
import * as yaml from "yaml";

View File

@@ -1,7 +1,5 @@
# Cloud init
## Table of contents <!-- omit in toc -->
1. [TL;DR](#tldr)
1. [Merge 2 or more files or parts](#merge-2-or-more-files-or-parts)
1. [Further readings](#further-readings)