Skip to content

Commit

Permalink
Perform a second sed for scripts_user module
Browse files Browse the repository at this point in the history
Following a change in cloud-init the module that controls user_data has
been renamed from "scripts-user" to "scripts_user", to take this change
into account we add a second sed to CFN_INIT_STARTUP_SCRIPT.
  • Loading branch information
RomaricKanyamibwa committed Nov 15, 2023
1 parent 7f43e23 commit bd6e26f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/e3/aws/cfn/ec2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

CFN_INIT_STARTUP_SCRIPT = """#!/bin/sh
sed -i 's/scripts-user$/[scripts-user, always]/' /etc/cloud/cloud.cfg
sed -i 's/scripts_user$/[scripts_user, always]/' /etc/cloud/cloud.cfg
${Cfninit} -v --stack ${AWS::StackName} \\
--region ${AWS::Region} \\
--resource ${Resource} \\
Expand Down

0 comments on commit bd6e26f

Please sign in to comment.