Skip to content

I am unable to flush userdata at ec2 startup. #4602

Open
@toasahi

Description

@toasahi

I am building GitHub actions in aws using ephemeral runner and custom AMI.

My requirement is to run userdata at the time of launching ec2 from the running template, I contacted aws support and they indicated that the code in question is problematic.
user_data = var.runner_os == “windows” ? base64encode(local.user_data) : base64gzip(local.user_data)

Why use base64gzip?

*I know that it is bad practice to run userdata in the startup template with ephemeral runner.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions