0% found this document useful (0 votes)
17 views

Docker File

The document defines a Dockerfile that installs tools like Python, AWS CLI, and Prowler on a CentOS image. It defines a non-root user for running Prowler scans and copies the Prowler code into the container. The document also contains an IAM role definition that allows an EC2 instance role to assume the Prowler role.

Uploaded by

maham sabir
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views

Docker File

The document defines a Dockerfile that installs tools like Python, AWS CLI, and Prowler on a CentOS image. It defines a non-root user for running Prowler scans and copies the Prowler code into the container. The document also contains an IAM role definition that allows an EC2 instance role to assume the Prowler role.

Uploaded by

maham sabir
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

FROM centos:latest

ARG USERNAME=prowler
ARG USERID=34000

RUN groupadd -g ${USERID} ${USERNAME} && \


adduser -g ${USERNAME} -u ${USERID} ${USERNAME} && \
yum install -y python3 bash curl jq file && \
pip3 install --upgrade pip && \
pip install awscli boto3 detect-secrets && \
yum install -y git
WORKDIR /prowler

COPY . ./

RUN chown -R prowler .

USER ${USERNAME}

ENTRYPOINT ["./run-prowler-reports.sh"]
~

role/ProwlerXA-Role

"Action": "sts:AssumeRole",
"Condition": {
"StringLike": {
"aws:PrincipalArn": "arn:aws:iam::224233068863:role/ProwlerEC2-Role"
}

You might also like