当前位置: 首页 > news >正文

AWS创建github相关的角色

创建github-actions角色

{"Version": "2012-10-17","Statement": [{"Effect": "Allow","Principal": {"Federated": "arn:aws:iam::11111111:oidc-provider/token.actions.githubusercontent.com"},"Action": "sts:AssumeRoleWithWebIdentity","Condition": {"StringEquals": {"token.actions.githubusercontent.com:aud": "sts.amazonaws.com"},"StringLike": {"token.actions.githubusercontent.com:sub": ["repo:project-ventures/test-crawler:*","repo:project-ventures/test-dash:*","repo:project-ventures/test-fspa:*","repo:project-ventures/test-gep:*","repo:project-network/repl-monitor:*","repo:project-network/*","repo:projectdevops/github-actions-demo:*"]}}},{"Effect": "Allow","Principal": {"AWS": "arn:aws:iam::11111111:root"},"Action": "sts:AssumeRole"},{"Effect": "Allow","Principal": {"Service": "ec2.amazonaws.com"},"Action": "sts:AssumeRole"}]
}

在创建一个github-actions用户,将github-actions角色添加到github-actions用户

创建github-cicd角色
{"Version": "2012-10-17","Statement": [{"Effect": "Allow","Principal": {"Federated": "arn:aws:iam::1111111:oidc-provider/token.actions.githubusercontent.com"},"Action": "sts:AssumeRoleWithWebIdentity","Condition": {"StringEquals": {"token.actions.githubusercontent.com:aud": "sts.amazonaws.com"},"StringLike": {"token.actions.githubusercontent.com:sub": "repo:project-network/*"}}}]
}

AmazonS3FullAccess策略完全添加上到github-cicd

http://www.dtcms.com/a/215563.html

相关文章:

  • go tour方法和接口
  • Mobaxterm解锁Docker
  • OpenCV CUDA模块图像处理------颜色空间处理之颜色空间转换函数cvtColor()
  • 高效多线程图像处理实战
  • 知识图谱:AI时代语义认知的底层重构逻辑
  • ASP.NET Web Forms框架识别
  • WPF【11_4】WPF实战-重构与美化(MVVM 架构)
  • ArcGIS Pro 3.4 二次开发 - 知识图谱
  • 飞牛fnNAS手机相册备份及AI搜图
  • 私服 nexus 之间迁移 npm 仓库
  • 融智学“新五常”框架:五维方式的重构与协同
  • 银河麒麟V10×R²AIN SUITE:用AI重构安全,以国产化生态定义智能未来
  • libvirt设置虚拟机mtu实现原理
  • 强大的免费工具,集合了30+功能
  • Ansible 配置Playbook文件格式、关键字和语法详解
  • WPF【11_8】WPF实战-重构与美化(UI 与视图模型的联动,实现INotifyPropertyChanged)
  • Leetcode-5 好数对的数目
  • AI Agents执行流程和决策流程学习
  • 多相电机驱动控制学习(1)——基于双dq坐标系的六相PMSM驱动控制
  • 基于物联网(IoT)的电动汽车(EVs)智能诊断
  • Unsupervised Learning-Word Embedding
  • Java-Set集合遍历的全面指南
  • Flink Table API 编程入门实践
  • LVS负载均衡群集
  • 深入剖析Java CompletableFuture:原理、陷阱与高并发场景优化指南
  • IT编程学习资料大全​​​​​​​​
  • 分布式光伏接入引起农村电压越限,如何处理?
  • 人工智能100问☞第34问:什么是语音识别与合成?
  • 网络拓扑如何跨网段访问
  • 基于深度学习的语音识别系统设计与实现