Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
Terraform_ec2_instance
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
rajat.kulkarni
Terraform_ec2_instance
Commits
493d20dd
Commit
493d20dd
authored
Dec 17, 2021
by
rajat.kulkarni
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Delete samplerole.tf
parent
c876553a
Pipeline
#26673
failed with stage
in 4 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
33 deletions
+0
-33
samplerole.tf
samplerole.tf
+0
-33
No files found.
samplerole.tf
deleted
100644 → 0
View file @
c876553a
resource
"aws_iam_role_policy"
"policy_name"
{
name
=
"policy_name"
role
=
aws_iam_role
.
role_ec2
.
id
policy
=
jsonencode
({
Version
=
"2012-10-17"
Statement
=
[{
"Sid"
:
"Statement1"
,
"Effect"
:
"Allow"
,
Action
=
[
"ec2-instance-connect:SendSerialConsoleSSHPublicKey"
,
"ec2-instance-connect:SendSSHPublicKey"
,
"autoscaling:ExecutePolicy"
,
"s3:CreateBucket"
,
"s3:DeleteBucket"
]
"Resource"
:
[
"*"
]
}]
})
}
resource
"aws_iam_role"
"role_ec2"
{
name
=
"role_ec2"
assume_role_policy
=
jsonencode
({
Version
=
"2012-10-17"
Statement
=
[{
"Effect"
:
"Allow"
"Principal"
:
{
"Service"
:
"ec2.amazonaws.com"
}
"Action"
:
"sts:AssumeRole"
}]
})
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment